popopome
popopome

Reputation: 12480

Adding a column guideline to the editor in IntelliJ

I'd like to use column guide line to IntelliJ IDE. Anybody knows about this? I couldn't find any solution for the feature?

For example: Visual Studio with column guideline

Upvotes: 48

Views: 28423

Answers (4)

Mark Amery
Mark Amery

Reputation: 154934

For my IntelliJ version - IntelliJ IDEA 2021.3.3 (Ultimate Edition), on Ubuntu - the setting is named Visual guides and can be found at:

Settings (CTRL-ALT-S) -> Editor -> Code Style -> Visual guides

Screenshot showing the above settings page, with the "Visual guides" label, "Optional" placeholder, "columns" suffix, and tip "Specify one guide (80) or several (80, 120)

Upvotes: 6

prayagupadhyay
prayagupadhyay

Reputation: 31232

In Intellj idea 13,

STEP 1 :
Goto File-> Settings > Code style > General

intellij 13 column width

STEP 2 : Change Right margin (columns) label

STEP 3 : Check on Wrap when typing reaches right margin.

STEP 4 : Goto Editor-> Appearance, check on 4th label (Show right margin)

show margin

output

enter image description here

Upvotes: 21

ranma2913
ranma2913

Reputation: 1206

I use Idea 12. You can find the settings here: First go to:

  • File > Settings > IDE Settings > Editor > Appearance
  • Verify that "Show right Margin" is checked.

Now go to:

  • File > Settings > Project Settings > Code Style > General
  • Select your project's Scheme and then the right margin character size.
  • From this page you can auto wrap or switch to using the tab character vs. the 4 spaces for indents.

Hope this helps

Upvotes: 28

Roman
Roman

Reputation: 66196

If I understand correctly what you're trying to configure, then you need:

Go to IDE Settings -> Editor Settings -> Appearance -> Tick Show right margin.

Upvotes: 55

Related Questions