LoginSignup
5
7

More than 5 years have passed since last update.

IntelliJで一部のコードを自動フォーマット対象から外す

Last updated at Posted at 2014-07-05

Setting > Code Style > General > Enable formatter markers in comments
で設定可能。

無題.png

あとはソースコードに@formatter:off@formatter:onを記述する。

@Override
public void configure(WebSecurity web) throws Exception {
    // @formatter:off
    web
        .ignoring()
            .antMatchers("/resources/**")
            .antMatchers("/setup**")
            .antMatchers("/signup**");
    // @formatter:on
}

ちなみにIntelliJでソースの自動フォーマットは Ctrl + Alt + l

5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7