Turn off "No lines changed" after reformatting

I hit option-command-L often when I'm working in Javascript. I like to keep my formatting consistent and perhaps its a nervous tick to make sure I'm not missing any code errors.

Unfortunately when reformatting doesn't do anything, it likes to tell me that it didn't do anything by displaying:

"No lines changed. Code is already properly formatted."

Is there a way to turn this informational message off?

0

You can disable this message by clearing "Show notification after reformat code action" checkbox in Settings (Preferences) | Editor | General, Formatting section

1

That section in Preferences doesn't seem to exist anymore in IntelliJ 2020.3.1

I would like to know where has it migrated to.

1

You can try disabling the editor.show.notification.after.reformat option in Registry (Help | Find Action..., type Registry..., locate the key there):

2

请先登录再写评论。