vscode-nim icon indicating copy to clipboard operation
vscode-nim copied to clipboard

Disable formatting of code

Open dom96 opened this issue 8 years ago • 2 comments

Is there any chance the current automatic behaviour of reformatting the code could be disabled?

It's really annoying pasting code and having it indented to the last line of code above it (which is badly wrong).

dom96 avatar Oct 07 '17 15:10 dom96

You can try set option "editor.detectIndentation": false in workspace settings

kosz78 avatar Oct 07 '17 16:10 kosz78

That doesn't help. I disabled autoIndent as well.

I reproduced one problem in particular which is incredibly freaking annoying. Can I disable this crap?


while result[0] >= 0:
  if cmpIgnoreStyle($entries[result[0]].procName & "iter",
                    $entries[i].filename) == 0:
    break

Put that into a .nim file, put your cursor at the bottom of the file and press <Tab>. Your cursor will be moved by 30 spaces!

dom96 avatar Nov 26 '17 14:11 dom96