pragmagic / vscode-nim

An extension for VS Code which provides support for the Nim language.
Other
235 stars 38 forks source link

Disable formatting of code #67

Open dom96 opened 6 years ago

dom96 commented 6 years ago

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).

kosz78 commented 6 years ago

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

dom96 commented 6 years ago

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!