


If translateTabsToSpaces is true, this also. tabSize: controls the visual width of tabs. If true, then when tab is pressed, an equivalent number of spaces will be inserted into the buffer instead. And even more so when it hits at the end of a long build process. The following File Type Preferences determine the indentation settings: translateTabsToSpaces: set to either 'true' or 'false'. This is extremely irritating as there is a) no indication of what caused the problem and b) it can happy at any time on any file that has been edited at some point. Here is the indentation inside the brackets that I want, and it. The only deviation from the defaults with regards to indentation is that I have indenttobracket set to true. Depending on current indentation, one type of automatic indentation does not happen as expected. This has only happened since the past 2 or 3 months and I never had this problem before, so I assume it was a recent change in Sublime that occasionally mangles either the tab vs. I am noticing an inconsistency with indentation in Python (default language package). That "changes the file" which now shows as changed and will request a save if closed. This creates a default snippet on the specified html file as shown below. Now, choose Snippet:html from the options displayed. Inspecting the file in the editor does not show an indentation issue and I suspect a tab got sneaked in somehow.Ĭlicking at the bottom right of the window, Spaces, next to Python which indicates the source language, allows me to pick Convert indentation to spaces. To create a first snippet in Sublime Text editor, click the Tools menu and select the Snippets option from the drop down window, as shown in the screenshot here. Every so often I will randomly get an IndentationError: unexpected indent message on a previously working Python file.
