# Deepin OS: How to configure tab size on Visual Studio Code using Deepin OS 20.7?

Hey guys, how's it going?

Today, we are going to learn how to configure tab size on Visual Studio Code using Deepin OS 20.7, a Debian based distro.

#### Introduction

`Visual Studio Code`, also commonly referred to as `VS Code`, is well known among software developers. It is an amazing open source code editor that combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle.

It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools.

#### 1 - Open VS Code settings

Go to `File -> Preferences -> Settings` or just click `CTRL+,` all at once.

#### 2 - Choose \`Tab Size\`

You can scroll down until you find it:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1671245399428/2u0KyR8oH.png align="center")

Or you can type `tab size` on `Search settings`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1671246754260/xC3vk2Dcj.png align="center")

#### 3 - Change the tab size number

The default number is 4, you just need to update the number, according to your will.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1671245700091/g1b0Rfasl.png align="center")

#### 4 - Disable auto detect indentation

By default, `VS Code` tries to guess your indentation configuration. In case you're interested, you can turn off this option by clicking on \`Editor: Detect Indentation\`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1671246439157/3d9BsT539.png align="center")

and uncheck the `Detect Indentation` option.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1671246315311/VqvGm4EeS.png align="center")

#### 5 - Confirm the change

By closing the window, you'll be confirmed the change.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1671245877429/UWFudDyt2.png align="center")

#### 6 - Test it

At the bottom of the page, you can see the new number in `Spaces`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1671246194152/8NygS-o1b.png align="center")

#### 7 - Celebrate

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1670125312642/Mk2RfkJIJ.png align="left")

#### Conclusion

That\`s all for today. I hope this article helped you. Let me know if you have any questions.
