How to apply "typing wrapper" in Intellij IDEA?

If I set the "wrapper when typing, reaching the right edge" in the settings Cody StyleGeneraland determining a new margin, how to apply these new settings to files so that they are reformatted?

+5
source share
2 answers

Very simple:

  • select the root of your module in the project view
  • in the code menu, select "Reformat ..."

EDIT

Forgot to mention this important detail:

IDE Settings> Code Style> Java> Wrapper and Brackets> Ensure Right Margin Is Not Exceeded

need to check. (at least for formatting java files, the same checkbox for other files exists)

+9
source

IntelliJ 14 ,

IDE > a > $ > > ():

.

0

All Articles