You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming you are referring to the use of 4 x space indentation when using the Format Document command from the right-click context menu or Ctrl+Shift+F - I could stand corrected but I don't think changing the method of indentation used is within the scope of the extension. See the README - https://github.com/mark-wiemer/vscode-autohotkey-plus-plus#code-format (scroll down a little).
Indentation can be toggled between spaces/tabs from the Status Bar, or from the Command Palette F1 (or Ctrl_Shift+P) and type in either tabs or spaces and choose from the drop-down menu.
This is a valid issue with AHK++ (and cweijan's extension) specifically. VS Code usually allows users to format using tabs or spaces, but our formatter ignores that option and always prints out spaces. We do respect the tabSize (e.g. number of spaces to print per indentation level) option. See formattingProvider.ts:136 for implementation details, will probably be a simple fix once we find out which option corresponds to tabs vs spaces :)
So, the default one is 4 spaces. But I love to be able to change it to tabs.
Thanks
The text was updated successfully, but these errors were encountered: