Closed mlakmal closed 7 years ago
@mlakmal there is a real issue here that the formatter also told otherwise replaces tabs with spaces.
Regarding the tabSize: the file is always formatted using the tab size detected by the editor and shown in the status line. So if the status line says Tab Size: 4 in the lower right corner then we use tabSize: 4 during formatting even with the setting "editor.tabSize": 2.
I will follow up in the TS bug https://github.com/Microsoft/TypeScript/issues/11199 since the fix for this has to come from the TS team.
Keeping the issue open to make sure we have a fix for this for September.
Got fixed for the next update:
Thanks @dbaeumer.
Closing.
Repeats for html, the spaces are replaced with tabs, regardless of the settings.
@IgorNovozhilov can you please open a separate issue describing the problem you have with HTML. This was about TS and replacing tabs with spaces :-)
Steps to Reproduce:
tabsize is 4 and not using above override and spaces are not getting added after function keyword and parenthesis/brackets.