There is a vertical line in Intellij Idea on 120th column.
Is there a way to move it some arbitrary column (I'd prefer one hundred symbols per line)?
Go to Preferences → Editor → General → Appearance and uncheck Show hard wrap and visual guides . Original answer: Go to Settings → Editor → General → Appearance and uncheck Show Right Margin . You can also configure where the right margin is in the code style settings.
Press Alt+Shift+Insert . From the main menu, choose Edit | Column Selection Mode. From the context menu of the editor, choose Column Selection Mode.
To configure the line length, open settings Ctrl+Alt+S , navigate to Editor | Code Style, and type the necessary length in the Hard wrap at N columns field. Wrap if long: break a section of text into lines so that each line fits the configured line length.
Found the answer on my own.
To change the default margin go to Preferences -> CodeStyle -> General -> Right margin and enter any value you prefer.
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