Vscode: Convert width of space indentation

Created on 24 Dec 2016  路  6Comments  路  Source: microsoft/vscode

I frequently receive content indented using 2 spaces and need to change it to 4. The steps for converting to one space indentation width to another are as so:

  1. Detect indentation from contents
  2. Convert space indentations to tabs
  3. Change tab indentation width to desired, e.g. 4 ("indent using tabs" command)
  4. Convert tab indentations to spaces

Could we possibly make this a one command process?

editor feature-request

Most helpful comment

The format commands are only available for languages with supported formatters. It would be nice if this worked independent of formatters.

All 6 comments

You should also be able to do this via

  1. Indent using spaces - choose 4
  2. Format document

While designing this feature it was difficult to find a balance between making it easy to use and supporting all the scenarios people expect from indentation.

@isidorn Where's the format document option?

The format commands are only available for languages with supported formatters. It would be nice if this worked independent of formatters.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryan-wong picture ryan-wong  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

trstringer picture trstringer  路  3Comments

borekb picture borekb  路  3Comments