Native indentation guides should be disabled. To fix that another extension is required: Guides (or any other extension for guides). Native indentation guides are not aware of this trick. Same approach you can use if you want to replace any other character let’s say comma (,) with space. Finally, click Replace All button to replace all the tabs with spaces. Go to Replace with field and press the space bar to add the required number of spaces. Very clever workaround! However, it leads to one problem: Go to the Replace tab, you can see find what field is already selected. The extension detects file indentation, calculates the difference, and adjusts letter spacing for each indentation character (space) so character takes more (or less) space on the screen. Here's how it looks like for code indented with two spaces, and target indentation width set to four spaces: It doesn't change the code, rather visual appearance. Stretchy Spaces extension allows changing the width of spaces which are used for indentation! For example, if the codebase has two spaces indentation, but for you, a code is more readable with four spaces wide indentation. Luckily I just discovered extension for Visual Studio Code, which helps with this problem enormously. I've struggled for years in situations like this.
It's not always possible to convert a project to a different indentation, unfortunately. The first step is making sure your User Preferences are how you like them.I wrote before, that tabs are more accessible as indentation than spaces. I thought I’d put this together for reference, as there is a particular sequence of steps for some of the transitions that needs to be followed.
More importantly, it makes it easy to adjust the indentation of code that doesn’t match your preference. Sublime Text is pretty dang good at making it easy to switch between using tabs and spaces to indent your code.