VS Code: How To Change Indentation (2 spaces, 4 spaces)

Last updated on September 21, 2020 A Goodman Loading... One comment

This article shows you how to change the indentation in VS Code.

1. Open your VS Code and:

  • Go to Code > Preferences > Settings if you’re using macOS
  • Go to File > Preferences > Settings if you’re using Windows

2. Type “Indentation” into the search field then head to the “Editor: Tab Size” section. Replace the default space-number with your preferred one.

Happy coding 🙂

Notify of
1 Comment
Inline Feedbacks
View all comments
6 months ago

Thanks, it was very helpful!

Related Articles