Typescript files do not get styled properly

Hello,

I've been using webstorm for quite a while now.

Im lately finding an issue with typescript files, basically I have a NodeJS project which contains both javascript and typescript files.

I have javascript styled at 2 spaces and typescript at 4.

No matter what I do, the typescript files are styled at 2 spaces.

Even if I select the whole file and press the Auto-Indent File option from the menu.

I have even deleted the .idea folder in case that was the issue.

Deselected the Detect and Use Existing file indents for editing.

Let me know. Thanks.

0
2 comments

Hi there,

Please check for .editorconfig files

0

Try disabling editorconfig support in Preferencess | Editor | Code Style by unchecking Enable Editorconfig support checkbox - does it make any difference?

0

Please sign in to leave a comment.