1

I'm wondering if there is a way to change the indent size when formatting javascript in VSCode.

I found this git commit that adds quite a few formatting options for JS but I don't see any ability to change indent size.

Anyone know of a way to do this?

--Edit--

I have already tried to change the indent size at the bottom of the editor. Toolbar Image (can't embed images yet...)

I have also tried changing the detect indentation setting. "editor.detectIndentation": false

But when I format it still uses two spaces.

brandonbanks
  • 1,125
  • 1
  • 14
  • 21
  • 3
    Possible duplicate of [visual studio code change indentation](http://stackoverflow.com/questions/34174207/visual-studio-code-change-indentation) – Manuel Allenspach Mar 14 '17 at 07:47
  • @manu I don't think it is. I looked at that and have already tried the solution there. Thank you for the link though. – brandonbanks Mar 14 '17 at 19:21

1 Answers1

0

I use a plugin called JS-CSS-HTML Formatter. It does exactly that, the ability to change editor settings for different file types.

https://marketplace.visualstudio.com/items?itemName=lonefy.vscode-JS-CSS-HTML-formatter

Joshua Russell
  • 670
  • 5
  • 13