My question is a duplicate of: How to turn off the Eclipse code formatter for certain sections of Java code? but for IntelliJ.
Does a similar feature exist for IntelliJ?
My question is a duplicate of: How to turn off the Eclipse code formatter for certain sections of Java code? but for IntelliJ.
Does a similar feature exist for IntelliJ?
Yes, and It works the same way with:
@formatter:off
and
@formatter:on
Navigate to:
Settings > Editor > Code Style > Formatter control