Disable code formatting for certain file types in save actions
已回答
Hi
We got code formatters for some file type (eg. java, sql...)
Is it possible to disable some of them just in save actions, but keep the formatting when pressing ctrl-alt-L?
Regrads
Stefan
请先登录再写评论。
Hi.
Yes, there is a checkbox "Reformat Code" which reformat your code according to your current code style settings in "Tools | Actions on Save"
Unchecking it will disable reformatting.
You can disable automatic formatting for certain (selected) file types in "Editor | Code Style".
In the "Do not format" input box enter f.ex: *.ini (glob pattern) to exclude ini files from automatic formatting.
Screen: