views:

31

answers:

1

I know, it sounds really stupid, but I don't seem to be able to format my code in IntelliJ. I can see the margin line (by default at 120 columns) but it seems that the formatter (activated from the menu Code -> Reformat Code) is just ignoring this margin. I'm quite new to IntelliJ so probably I'm just missing something trivial.

It's quite annoying so any help will be appreciated.

+1  A: 

Do you mean that the formatter does not break long lines? Check Settings / Project Settings / Code Style / Wrapping.

Péter Török
Thanks! That seems to do exactly what I mean :)
Jeroen Rosenberg

related questions