Recently I want to improve python support on vscode based on jedi, but the build process is very confusing…
I created a Makefile
, but I keep getting indentation error.
One way to check if you get spaces or tabs is via this setting: “Editor: Render Whitespace”
Tried
I tried to set it via tab size
in the status bar:
Do some internet search, and inset the following vscode settings:
"[makefile]": {
"editor.insertSpaces": false,
"editor.detectIndentation": false
},
Not working.
the fix
Turns out the editorConfig
overrides all the behavior above. so the fix was simple:
in .editorconfig
:
[Makefile]
indent_style = tab
(Originally it has set space for all types: