The IDE change tabs to spaces in Vue files
Answered
I have strange issue with the IDE behavior in vue files:
I set the ident of the files to be tab (with 4 spaces), like this:

But after a while the IDE is changing the code to 2 spaces for vue files only, normal js files has still tab with 4 spaces:

After restart to the IDE the proble is resolve but return again after a while..
i check everything i can from my side, but there is no something i see for now.
My IDE version is 2023.2.1 RC, i already tried few versions, the problem is return every time, in the first install all working fine, but after a while problem is started.
Thanks for the help.
Please sign in to leave a comment.
Hello Eliran.
Could you please specify if you use the Code Style settings set up via the EditorConfig or the IDE settings? If the latter, does anything change if you disable the Enable EditorConfig support option in the
Settings | Editor | Code Style?Hey, this checkbox was checked.
but i dont understand why maybe if its checked, the problem is happend only in Vue files. very strange for me.
Vue templates and JavaScript files are different categories in the Code Style settings; that's why one of them could be affected by this problem and another one - not. Does the problem occur now, or it is fixed?
No, when i opend another project in the IDE the problem occurred.
Please, note that the Code Style settings are project-wide, so you need to change them (the Enable EditorConfig support option, too) for each separate project.
Could you please check if the issue persists on the same project?