Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default indent line guide in Visual Studio Code?

Is there any built in Indent Guide in Visual Studio Code?

like image 956
Cisum Inas Avatar asked Mar 02 '16 07:03

Cisum Inas


People also ask

Does Visual Studio Code auto indent?

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.

What is indent guide?

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.

What is the default indent color in Visual Studio?

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.

Can the indent guide be customized?

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

How do I change the default C++ format in Visual Studio?

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.

How do I enable indentation in a JSON file?

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?


1 Answers

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.

like image 91
Daniel Imms Avatar answered Sep 30 '22 06:09

Daniel Imms