How to disable autoformatting
已回答
This feature doesn't work in many cases. I suppose it happens every time when CLion fails to parse the source code. For example, https://intellij-support.jetbrains.com/hc/en-us/community/posts/206664869-Clion-doesnt-reformat-the-QT-foreach-construct-nicely
Is there any way to disable autoformatting entirely?
请先登录再写评论。
I suppose that you can uncheck all settings on the 'File | Settings | Editor | General | Smart Keys' tab. Does that help?
I disabled everything but it's still trying to fix my code
https://yadi.sk/i/TnoNa7DE3Lokus
For example, I want to type this:
bool needToDoSomething = config.SomethingIsEnabled &&
(DoSomethingNow || SomeFactor > SomeThreshold);
I want 4 spaces indent on the second line but Clion thinks 8 spaces would be better...