Disable "Reformat Code" for a block

Dear community,

Is it possible to add a predefined enclosing comment lines to disable Reformat Code on this block as "indent" do:

/* REFORMAT-OFF */
String s =
"aaaa" +
"bbb" +
"ccc" +
"ddd" +
"eee";
/* REFORMAT-ON */

Thank you,
Chris

1 comment
Comment actions Permalink

Hello Christophe,

No, there is no such feature in IntelliJ IDEA.

Is it possible to add a predefined enclosing comment lines to disable
Reformat Code on this block as "indent" do:

/* REFORMAT-OFF */
String s =
"aaaa" +
"bbb" +
"ccc" +
"ddd" +
"eee";
/* REFORMAT-ON */
Thank you,
Chris

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.