JerJer
JerJer

Reputation: 31

How to stop vscode from de-indentating my latex project?

Kinda new into all of this coding stuff, so will probably sound stupid. I use vscode with the latex workshop extension, but it seems to delete my indentations every time i save my document. It creates a "dummy" file called __latexindent_temp.tex and it removes all of my indentations, then deletes itself. Is there any way to stop it from un-indenting my stuff, or even better get it to auto indent whenever i start a new environment (which i thought would be the default instead of deleting indentations lol)?

Upvotes: 3

Views: 1160

Answers (1)

AzuxirenLeadGuy
AzuxirenLeadGuy

Reputation: 2870

It seems that you have the setting to automatically format code is true, and you might want to set it as false.

The setting id is editor.formatOnSave. You can search this in VS Code settings and make sure it is unticked. Alternativly, you can add

    editor.formatOnSave": false

in your setting.json file of VS Code

Upvotes: 3

Related Questions