Exclude section on IntelliJ code formatting page

Is there any way to have a part of the IntelliJ -not-format page?

I use XHTML and facelets, but this can apply to any page. I am also wondering if this is possible to do in code.

Thanks.

+4
source share
2 answers

Since IDEA 13 can suppress formatting with

@formatter:off 

and reactivate with

  @formatter:on 

inside comments.

But you need to enable this first in Settings -> Code Style -> General -> Format Management

+5
source

This seems to be impossible with IntelliJ 9.

0
source

Source: https://habr.com/ru/post/1316313/


All Articles