intellij idea - How to prohibit whole file reformatting, but allow reformatting of the selected text? -


sometimes want reformat specific parts of files, never want accidentally reformat whole file.

with intellij idea "reformat code" action, if configure "reformat selection", reformat selection if selected text, still reformat whole file if none of text selected. may forget , hit "reformat code" not selecting text, , when time commit find out reformatted file didn't want reformat.

how can disable reformatting whole file when none of text selected, still able reformat text explicitly selected?

set in reformat file dialog - ctrl + shift + alt + l enter image description here


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -