Code Style - Single line empty blocks
Is there a way for me to set my Code Style settings such that an empty block (say, for a method implementation) won't be wrapped across another line and will instead stay on a single line?
For example, I'd like

instead of

which is what my Code Style settings currently create when I run the Reformat action.
请先登录再写评论。
Try enabling Keep when reformatting | Simple methods in one line in your code style preferences, Wrapping and Braces tab
I logged an issue where ONLY empty code blocks are kept in one line https://youtrack.jetbrains.com/issue/IDEA-387219/Empty-braces-in-one-line