I know that sound like a stupid question, and we can find many answer on google. However, i've been trying for one hour and it still not working.
The question is prety simple, i'm coding on visual studio code on Mac OS. And i want to instert tab when i press tab, and not 4 spaces. It it supposes to be very simple: Go on 'code'->'preferences'->'users stting' And add: // Insert spaces when pressing Tab. 'editor.insertSpaces': false Into: settings.json However i have no clue why, but this is not working. (I've save it, close visual, reboot mac, still not working) Does anyone has any clues to help me? Thanks a lot. (I've save it, close visual, reboot mac, still not working) --> One thing is missing - did you try it with a completely new file?;) I just tried it, had the same issue and almost thought it is a bug, but it seems to be expected behavior as there is another setting editor.detectIndentation which is true by default.
If the indentation is detected then the detected value takes precedence over your defined setting. At first this seemed odd as others also reported in a GitHub. Play skyrim on mac sigh sierra for free pc. But the analogy with CR/CRLF in this makes sense. So as a quick fix you could set editor.detectIndentation to false or convert your existing indentation to tabs so that the next time you open the file the proper detection is done.
IOW, Pressing Tab at the start of a new paragraph does not indent the paragraph, it simply tabs in to the first default [.5'] tab stop. With the insertion point at the beginning of the 1st sentence Tab sets a first line indent at the.5' tab stop.
- четверг 13 декабря