Code formatter add extra tabs for my Javascript file on Vuejs Application

Viewed 14

I am facing an issues regarding code formatter for my Vuejs application. Originally when i clicks save, the code formatter on VsCode will automatically format the code by adding one tabs. But now my VsCode will add two tabs instead of one as shown in the images below:

Image that illustrate the problem

The red line is the extra space that should not have.

Even i had set the "editor.tabSize" to 2 in my settings.json file. But the behaviour still the same.

This causes all my Javascript need to be recommitted again to the repository because of extra space added for my code edditor.

Is anyone know what are the problem? I have tried out many different solution from internet but i dont found any solution that can solved my issues.

Hope someone can help me thanks!

0 Answers
Related