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
Comments
Post a Comment