Intellij IDEA seems to like to reformat the code block inside braces once the closing brace is entered. For example, if I have a block of code that I now want to wrap in a try/catch block, once I type in the closing brace of the try block, the entire try block automatically gets reformatted. I have searched in settings but was not able to find anything that would turn this off. Any ideas?
Yes.
File --> Settings --> Editor --> General --> Smart Keys
Then uncheck the option "Reformat block on typing '}'"
Apply --> OK
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With