Is there any built in Indent Guide in Visual Studio Code?
Auto-indentation on Visual Studio Code is currently disabled by default, and users can add the editor. autoIndent setting to the editor in order to enable it. At the moment, Visual Studio Code includes auto-indentation rules for 5 languages, including JavaScript, TypeScript, CSS, HTML, and JSON.
Indent Guides for Visual Studio Guides can be displayed at the indent specified in your settings, regardless of tabs or spaces, or wherever text has been indented to. Page width markers can be displayed at a fixed location and will change color when code extends past them.
The default is dotted grey, as shown in the image. Each indent level can have a different style and color. Guides can be shown and customized for any language in Visual Studio. The extension understands whitespace characters, not code.
Each indent level can have a different style and color. Guides can be shown and customized for any language in Visual Studio. The extension understands whitespace characters, not code. Source code is available at github.com/zooba/indentguide
Applies to: Visual Studio Visual Studio for Mac Visual Studio Code Use these property pages to change the default behavior of the code editor when you are programming in C or C++. To access this page, in the Options dialog box, in the left pane, expand Text Editor, expand C/C++, and then click Formatting.
You can enable it by adding the following to your settings.json file ( F1, Open Settings (JSON) ): For anything more customizable indent guides you will need an extension such as Guides. @DanielImms How can this be controlled with a keyboard shortcut to toggle it off and on?
We just released this in the June 2016 release (v1.3.0). You can enable it by adding the following to your settings.json
file (F1, Open Settings (JSON)
):
"editor.renderIndentGuides": true
For anything more customizable indent guides you will need an extension such as Guides.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With