What is that line on the right in Intellij Idea code editor?
Here you can see the line:
In the editor, place the caret at a line of code and press F11 . Alternatively, right-click the gutter next to the line of code that you want to bookmark and select Add Bookmark.
I know I can hide the outline lines by going to Editor -> General -> Code Folding and unchecking the "Show code folding outline" box.
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.
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).
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