简体   繁体   English

如何摆脱 IntelliJ Idea 编辑器窗格中的垂直线?

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

recently a gray vertical line appeared in about the middle of the editor pane of my IntelliJIdea Community Edition 13.1.4 probably due to some manipulations with the settings that I cannot remember.最近,我的 IntelliJIdea Community Edition 13.1.4 的编辑器窗格中间出现了一条灰色垂直线,这可能是由于对我不记得的设置进行了一些操作。 I cannot find how to get rid of it, which is annoying.我找不到如何摆脱它,这很烦人。 Who can help?谁能帮忙?在此处输入图像描述 Thanks.谢谢。

Updated answer:更新的答案:

Go to PreferencesEditorGeneralAppearance and uncheck Show hard wrap and visual guides .转到PreferencesEditorGeneralAppearance并取消选中Show hard wrap and visual guides

设置窗口 2020

Original answer:原答案:

Go to SettingsEditorGeneralAppearance and uncheck Show Right Margin .转到SettingsEditorGeneralAppearance并取消选中Show Right Margin

设置窗口 2014

You can also configure where the right margin is in the code style settings.您还可以在代码样式设置中配置右边距的位置。

It is called 'Show hard wrap guide' now, located in Editor > General > Appearance它现在被称为“显示硬包装指南”,位于编辑器 > 常规 > 外观

设置 > 编辑器 > 常规 > 外观

In new versions of JetBrains IDEs, Hence, After 2017, you should search show hard wrap guide .在 JetBrains IDE 的新版本中,因此,2017 年之后,您应该搜索show hard wrap guide see below screenshot:见下面的截图:

在此处输入图片说明

It's inside of Editor > General > Appearance它在Editor > General > Appearance 里面

In mac Command+Shift+A .. Search for "show right margin" .在 mac Command+Shift+A .. 搜索“显示右边距”。 Press enter to turn it off.按 Enter 将其关闭。 Booom轰隆隆

Go to settings and type line separator in search and hard wrap it to 180转到设置并在搜索中输入行分隔符并将其硬包装为 180

在此处输入图片说明

For PyCharm 2017 and aboce it was moved, but can still be done by:对于 PyCharm 2017 和 aboce,它已被移动,但仍然可以通过以下方式完成:

Editor > Color Scheme > General. Then in the new control to the right, open Editor > Guides > Hard wrap guide , and uncheck the checkbox for " Foreground ".然后在右侧的新控件中,打开Editor > Guides > Hard wrap guide ,并取消选中“ Foreground ”复选框。

2018-10-31 2018-10-31

Settings -> Editor -> Code Style设置 -> 编辑器 -> 代码样式

you can find 'Hard wrap at [value] columns'.您可以找到“[值] 列的硬包装”。

230 columns is good to me. 230 列对我来说很好。

On windows, for IntelliJ IDEA 2021.3 (Community Edition):在 windows 上,对于 IntelliJ IDEA 2021.3(社区版):

  • File文件
  • -> Settings -> 设置
  • -> Editor -> 编辑器
  • -> General -> 一般
  • -> Appearance -> 外观
  • -> Uncheck "Show indent guides" -> 取消选中“显示缩进指南”

Windows JetBrains Rider 2022: Windows JetBrains Rider 2022:

File->Settings->Editor->General->Appearance文件->设置->编辑器->常规->外观

Uncheck "Show hard wrap and visual guides (configured in Code Style options)"取消选中“显示硬包装和视觉指南(在代码样式选项中配置)”

在此处输入图像描述

In version IntelliJ IDEA 2022.3 (Community Edition) Build #IC-223.7571.182, built on November 29, 2022版本 IntelliJ IDEA 2022.3(社区版)Build #IC-223.7571.182,构建于 2022 年 11 月 29 日

You can browse to: File -> Settings -> Editor -> General -> Appearance您可以浏览到:文件->设置->编辑器->常规->外观

Uncheck "Show hard wrap and visual guides (configured in Code Style options)取消选中“显示硬包装和视觉指南(在代码样式选项中配置)

Or optionally if you really don't want to browse this long, just search on top left search option as "Hard wrap" or "visual guides".或者,如果您真的不想浏览这么长时间,也可以选择在左上角的搜索选项中搜索“硬包装”或“视觉指南”。

更新的 IntelliJ 视觉效果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM