Skip to content

Separate tab size and indent size #42740

@bevolz

Description

@bevolz

Visual Studio Code have not appear to have the ability to do the Tools->Options Tab settings of Visual Studio Professional where you can specify that tabs are 8 spaces but the indent size if 4? All our code uses that style and many other editors let you do this, but Visual Studio Code doesn't seem to support this. I've tried lots of things in Visual Studio Code but not found any combination of settings that work.

Using Visual Studio Code 1.19.3 (and also Visual Studio 2015 (and Professional 2012)).

In Visual Studio, setting tabs at 8 and spaces at 4 means (for a blank line):

  • Press tab key once, indent of 4 spaces.
  • Press tab again, indent of tab (removes 4 spaces, adds tab)
  • Press tab third time, indent is tab + 4 spaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor-coreEditor basic functionalityfeature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions