Click the “Spaces: 2” (or 4 or whatever) indicator in status bar and the menu that pops up has a “Indent Using Tabs” option. Also has a “Convert Indentation to Tabs” command.
If you find yourself needing it a bunch, it’s something to put in your .editorconfig or workspace settings or maybe even default user settings
.editorconfig calls it indent_style = tab
VS Setting is called editor.indentSpaces