vscode-nim
vscode-nim copied to clipboard
wrong indentation sometimes
In my settings.json I have these lines:
"[nim]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
},
However, sometimes when I hit the TAB button, the editor indents 4 spaces instead of 2. It happens rarely though. Closing and re-opening the file usually solves the problem. I don't know if it's VS Code or the plugin.
I'm having a similar problem. I have the same setting as you, except that I get 4 or even 6 spaces of indentation occasionally, and then two every single time afterward. Not sure what's causing this.