Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vertical column in Intellij Idea at arbitrary position

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)?

like image 620
Artem Abramov Avatar asked Oct 06 '13 06:10

Artem Abramov


People also ask

How do you change the vertical line in IntelliJ?

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.

How do I select a column in IntelliJ?

Press Alt+Shift+Insert . From the main menu, choose Edit | Column Selection Mode. From the context menu of the editor, choose Column Selection Mode.

How do I set line length in IntelliJ?

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.


1 Answers

Found the answer on my own.

To change the default margin go to Preferences -> CodeStyle -> General -> Right margin and enter any value you prefer.

like image 73
Artem Abramov Avatar answered Sep 24 '22 17:09

Artem Abramov