Default indent line guide in Visual Studio Code?

Visual Studio-CodeVscode Settings

Visual Studio-Code Problem Overview

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

Visual Studio-Code Solutions

Solution 1 - Visual Studio-Code

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.

Solution 2 - Visual Studio-Code

As of the September 2021 (version 1.61) release, the correct setting is now:

"editor.guides.indentation": true

editor.guides.indentation setting in UI

The old setting from the other answer has been deprecated:

> ### Indentation guides settings > > The editor.renderIndentGuides and editor.highlightActiveIndentGuide > settings have been deprecated in favor of editor.guides.indentation > and editor.guides.highlightActiveIndentation.

Solution 3 - Visual Studio-Code

Default indent line guide

  • Method-1 (using settings.json)

    "editor.renderIndentGuides": false, is now deprecated in vs code.

    Use "editor.guides.indentation": true instead.

  • Method-2 (using settings UI)

    Goto settings > search editor.guides.indentation > Add 'tip' mark for guides indentation.

Custom indent line guide

Using the below extensions, you can add custom indent guides



All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCisum InasView Question on Stackoverflow
Solution 1 - Visual Studio-CodeDaniel ImmsView Answer on Stackoverflow
Solution 2 - Visual Studio-CodeGino MempinView Answer on Stackoverflow
Solution 3 - Visual Studio-CodeBegulaView Answer on Stackoverflow