CLion - Code Style to OFF/Disable
已完成
CLion 2018.1.2 as test
How to disable "Code Style" (to OFF)?
Code Style - spoils our usual style and forcibly interferes with writing code
even disabling formatting does not help - the code deteriorates, it interferes with work
// @formatter:off // @formatter:on
请先登录再写评论。
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207017425-How-to-DISABLE-All-Code-Style
Created July 27, 2006 05:26
- no reaction
- no answer
- no solution
!!! what shame, shame and horror !!!
The user also contacted us via email, but I copy the suggestions here just in case:
Formatting executed by Code | Reformat Code can be disabled using markers (https://www.jetbrains.com/help/idea/reformat-and-rearrange-code.html#exclude_part_of_code), or by excluding certain files (https://www.jetbrains.com/help/idea/reformat-and-rearrange-code.html#exclude_file_from_reformat).
Formatting executed when inserting code can be disabled in File | Settings | Editor | General | Smart Keys by setting Reformat on paste to None.
You can also disable there the Reformat block on typing '}' and Smart indent options to minimize formatting when typing code.
The user also ...
again, everything will be repeated:
- all possible settings - cannot help
- formatting corrupted
- the process of writing code turns into flour
- we work as in handcuffs
- the IDE forces you to write as "it thinks correctly"
isn’t it strange?
the program teaches YOU to write programs, and not vice versa
...
I got an answer to my question: CLion - Code Style to OFF/Disable?
answer: no and not planned, as impossible
...
I hope that over time everything will work for YOU and for US!!! :о)
thank
I have come across both forum posts regarding this issue:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207017425-How-to-DISABLE-All-Code-Style
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360008130480-CLion-Code-Style-to-OFF-Disable
I have followed the instructions in each of the links provided and none have solved the problem. Additionally, I don't want to put anything non-code related (i.e IDE related) comments in a source file since it's unprofessional and gets shared and worked on by others on different platforms (yet even adding // @formatter:off didn't solve the problem).
It is 2026, there is STILL NO SOLUTION to globally turn off the automatic formatting. I literally have a better coding experience in Notepad since it doesn't actively mess with what I type.
This is completely unacceptable.
Hi,
Currently, these threads contain all available.
In case the file or file extension is added in File | Settings | Editor | Code Style | Formatter, these files should be skipped by the formatter.
If the IDE ignores these settings, please contact us for a deep investigation.