Disable formatter

Answered

So I'm wondering if there is a way to disable the formatter. Just off.

I'm aware of the "formatter control" dialog, and I am missing the "off" option. I am not looking for a different (or, god help, "smarter") formatter, I just want it to go away. If that means auto-indent goes away, too, so be it, pre-Emacs days, here I come --- any indent I cannot adjust with a backspace key without my editor deciding that what I really wanted was to go back to the previous line I have finally concluded I can live without. Also, I'd rather not litter my code with comments appeasing my editing tool, and while I barely tolerate my editor blinking its unsolicited opinions about my code at me, I will not have it decide what that code looks like, against my will no less.

So I am hoping I'm missing something glaringly obvious, but so far no solution has presented itself. Can it really be so difficult to just switch this thing off and regain control over the layout of one's code?

TIA,

J

0
1 comment

Hello J,

There is no on/off switch per se. You can mark any document as plain text in order to disable advanced IDE features in it altogether.

You can also create a scope with the following filter (syntax reference), for instance, in order to disable reformatting for your production code (everything located in the sources root):

src:*..*

Note that the setting is global, i.e. once you set it, it will be in effect for all projects.

0

Please sign in to leave a comment.