I laughed when https://www.google.com/#q=visual%20studio%20code%20indent%20settings%20per%20file%20type got me the first link twice (see below screenshot).
But I was glad that that link to [WayBack] visual studio code – How to set per-filetype tab size? – Stack Overflow.
This one:
- pointed me at [WayBack] Editor Config for VS Code – Visual Studio Marketplace “Extension for Visual Studio Code – DEPRECATED – See Read Me for more information”
- which got me to [WayBack] GitHub – editorconfig/editorconfig-vscode: EditorConfig extension for Visual Studio Code
- that allows to specify [WayBack] EditorConfig types of configuration files:
EditorConfig is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs.
In addition, it taught me how to configure the settings.json
with md
specific settings, which – despite the IDE indicating the JSON is invalid – just works: markdown indentation is now 2 character positions.
"[md]": { "editor.tabSize": 2 }
![]()
The search result: