简体   繁体   中英

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

在此输入图像描述

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. 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. Usually you can set-up the maximum code line length in the settings.

From: 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

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...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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