Yaroslav
Yaroslav

Reputation: 1375

Line on the right in Intellij Idea code editor

What is that line on the right in Intellij Idea code editor?

Here you can see the line:

enter image description here

Upvotes: 8

Views: 6936

Answers (4)

xyz
xyz

Reputation: 11

Setting - Editor - Color Scheme - General

remove foreground for Hard wrap guide

Intellij Version - 2022.1.2 Ultimate

settings image

Upvotes: 1

Hamidreza Sadegh
Hamidreza Sadegh

Reputation: 2196

setting - editor - codeStyle - (choose your code) - wrapping and braces - hard warp at

Upvotes: 0

CrazyCoder
CrazyCoder

Reputation: 401877

The right margin can be toggled in the Editor | Appearance settings:

margin

To change the position of the margin, use the Code Style options:

column

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

Carcigenicate
Carcigenicate

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

Related Questions