Disable code formatting for certain file types in save actions

Answered

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

0
2 comments

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.

0

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:

2

Please sign in to leave a comment.