ChatGPT解决这个技术问题 Extra ChatGPT

How to get rid of a vertical line in the editor pane of IntelliJ Idea?

https://i.stack.imgur.com/VvyUm.png


m
mingos

Updated answer:

Go to PreferencesEditorGeneralAppearance and uncheck Show hard wrap and visual guides.

https://i.stack.imgur.com/QSzWk.png

Original answer:

Go to SettingsEditorGeneralAppearance and uncheck Show Right Margin.

https://i.stack.imgur.com/5ygMN.jpg

You can also configure where the right margin is in the code style settings.


To me, the bigger issue is a pasted line breaking at that point. Even with the visible line gone, a pasted line still breaks there. How do you get rid of that?
Answered my own question - Editor -> Code Style -> <your language> -> Hard Wrap At. I set my to 999 (the max)
Can you just update the original answer and not add the Update at the bottom of it? I only ask because I just about missed your update and this was super helpful lol
@AnthonyRussell the edit was not done by me. Also, I think it makes sense to keep the original answer since the screenshot refers to it.
This answer not relevant for current versions
D
Danny Varod

It is called 'Show hard wrap guide' now, located in Editor > General > Appearance

https://i.stack.imgur.com/6ApQX.jpg


C
Community

In new versions of JetBrains IDEs, Hence, After 2017, you should search show hard wrap guide. see below screenshot:

https://i.stack.imgur.com/sYLxg.jpg

It's inside of Editor > General > Appearance


u
user2789973

In mac Command+Shift+A .. Search for "show right margin" . Press enter to turn it off. Booom


S
Suraj Rao

Go to settings and type line separator in search and hard wrap it to 180

https://i.stack.imgur.com/ZTJIV.jpg


佚名

For PyCharm 2017 and aboce it was moved, but can still be done by:

Editor > Color Scheme > General. Then in the new control to the right, open Editor > Guides > Hard wrap guide, and uncheck the checkbox for "Foreground".


u
user9600581

2018-10-31

Settings -> Editor -> Code Style

you can find 'Hard wrap at [value] columns'.

230 columns is good to me.


P
Peter Csala

On windows, for IntelliJ IDEA 2021.3 (Community Edition):

File

-> Settings

-> Editor

-> General

-> Appearance

-> Uncheck "Show indent guides"