I'm not sure if there is a universal solution, but you can configure key bindings for this:
{
"key": "ctrl+v tab",
"command": "type",
"args": { "text": "\t" },
"when": "editorTextFocus"
}
This keychain will insert a tab character, even if the current mode is spaces.
source
share