Santiago Aguilar HernandezS
Denoβ€’2y agoβ€’
3 replies
Santiago Aguilar Hernandez

Formatting with VSCode adds a tab instead of 2 spaces

Hi, I'm experiencing a weird behavior in VSCode. I'm formatting a new Typescript file however it adds a tab for indentation instead of 2 spaces, but formatting an existing file works. I have setup this config under deno.json:

"fmt": {
"indentWidth": 2
}

However running deno fmt myFile.ts works in both cases (old and new files). Is it suppose that Deno VSCode extension uses deno fmt under the hood? I have attached a video.
Was this page helpful?