Reputation: 1375
What is that line on the right in Intellij Idea code editor?
Here you can see the line:
Upvotes: 8
Views: 6936
Reputation: 11
Setting - Editor - Color Scheme - General
remove foreground for Hard wrap guide
Intellij Version - 2022.1.2 Ultimate
Upvotes: 1
Reputation: 2196
setting - editor - codeStyle - (choose your code) - wrapping and braces - hard warp at
Upvotes: 0
Reputation: 401877
The right margin can be toggled in the Editor
| Appearance
settings:
To change the position of the margin, use the Code Style
options:
See help for more details. Basically, it's the guide line showing where the wrapping will occur (if enabled for certain code constructions).
Upvotes: 6
Reputation: 45726
That's the right margin. It's telling you roughly how long your lines should be for readability purposes. You can adjust its length in the settings (see the link above), although the default of 80 characters is a widely accepted standard.
Note that if you try to write a line longer than that marker, it may cut the line down and put the remainder on the line below.
Upvotes: 6