Search code examples
formattingvisual-studio-codeindentationvscode-extensions

How to format code to use the specified `tabSize` with the built-in formatter?


I have the following AutoHotkey script sample, notice the code is indented by a single space:

#z::
 MsgBox The Win-Z hotkey was pressed.
 Gosub MySubroutine
 return

MySubroutine:
 Sleep 1000
 return

I searched through the VS Marketplace but didn't find a usable formatter extension for AHK scripts.

I've configured "editor.tabSize": 2, is there a way to format the code to use the specified tabSize with the VSCode built-in formatter?


Solution

  • This feature request is tracked here.