简体   繁体   English

编程IDE /编辑器中垂直条的目的

[英]purpose of vertical bar in programming IDEs/Editors

In this example. 在这个例子中。 I'm using Phpstorm Code Editor and I wonder the purpose of this Vertical Bar 我正在使用Phpstorm代码编辑器,我想知道这个垂直条的目的

在此输入图像描述

This is a visual limiter of the line length. 这是线长的视觉限制器。 Usually the code convention in programming languages or in particular project requires to have the line of code to be limited by length. 通常,编程语言或特定项目中的代码约定要求使代码行受到长度的限制。
For example Python's PEP 8 coding convention requires it to be limited to 79 characters. 例如,Python的PEP 8编码约定要求它限制为79个字符。 So basically this limiter in your text editor or IDE is just made for convenience to help you to control the maximum line length in your code. 因此,文本编辑器或IDE中的限制器基本上只是为了方便起见,以帮助您控制代码中的最大行长度。 Usually you can set-up the maximum code line length in the settings. 通常,您可以在设置中设置最大代码行长度。

From: http://www.jetbrains.com/phpstorm/webhelp/editor-appearance.html 来自: http//www.jetbrains.com/phpstorm/webhelp/editor-appearance.html

Show right margin (configured in Code Style options) Select this check box to have a thin vertical line at the right margin of the editor displayed. 显示右边距(在“代码样式”选项中配置)选中此复选框可在编辑器的右边缘显示细垂直线。 Refer to the description of the General page of the Code Style settings. 请参阅“代码样式”设置的“常规”页面的说明。

From: http://www.jetbrains.com/phpstorm/webhelp/editor-appearance.html 来自: http//www.jetbrains.com/phpstorm/webhelp/editor-appearance.html

Right Margin (columns) In this text box, specify the number of columns to be used to display pages in the editor. 右边距(列)在此文本框中,指定用于在编辑器中显示页面的列数。 Wrap when typing reaches right margin Select this check box to ensure that edited text always fits in the specified right margin. 键入时的换行到达右边距选中此复选框可确保编辑的文本始终适合指定的右边距。

So you can probably disable it if you want... 如果你想要你可以禁用它...

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

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