EditorConfig Guidelines extension add support for new guideline property in .editorconfig. This property adds column guideline in text editor:
Sample .editorconfig:
root = true [*] guidelines = 80 dashed, 100See configuration section for more details.
- .editorconfig zero-configuration. Ideal for teams.
- Theming support.
- Customizable guideline color.
- No telemetry.
- Start Visual Studio 2022
- Open Extensions | Manage Extensions
- Type EditorConfig
- Select EditorConfig Guidelines extension and click Install.
Just add .vsconfig to the root directory of your project with content like this:
{ "version": "1.0", "components": [ ], "extensions": [ "https://marketplace.visualstudio.com/items?itemName=Ivan.EditorConfigGuidelines", ] }To configure column guidelines, use the guidelines property in your .editorconfig file with the following syntax:
- Syntax:
guidelines = <column> <style>, <column> <style>, ... - Parameters:
<column>: The column number where the guideline should appear. Columns are numbered from left to right starting at 1, with the guideline drawn on the specified column's right edge. If you specify column 0, the guideline will be drawn on column 1's left edge.<style>: The line style, which can be one of the following:soliddasheddotted
Example:
[*.cs] guidelines = 80 solid, 100 dashed, 120 dottedThe extension uses standard Visual Studio Fonts and Colors setting to configure column guidelines color. This setting is per-user, to match Visual Studio theme colors.
To configure guidelines color:
- Open Tools | Options from main menu.
- Select Environment | Fonts and Colors category.
- Select Column guideline color from Display Items list.
- Configure item background.
- Click OK to apply changes.
-
1.1.0 (06 January 2023)
- Add option to specify guidelines style (solid, dashed, dotted)
- Suggest to rate extension on Visual Studio Marketplace.
-
1.0.3 (26 December 2022)
- Update icon.
-
1.0.1 (26 December 2022)
- Update display name.
-
1.0.0 (26 December 2022)
- Initial release.

