Beautify on save in VS code?

前端 未结 2 589
小蘑菇
小蘑菇 2021-02-07 08:01

I just installed a beautify extension for vs code

I want to have my code beautified whenever I save a file, but can\'t figure out how to configure it that way.

I

2条回答
  •  礼貌的吻别
    2021-02-07 08:39

    I visited this question because my beautify was not working in VS code And Adding the above mentioned setting fixed my issue but if you want your beautify to solve linting issue as well then you gonna have to added the below setting along with the above like this : (Hope this helps anyone)

    {
      "editor.formatOnSave": true,
      "tslint.autoFixOnSave": true
      }
    

提交回复
热议问题