vscode ---> Shortcuts formatting codes, semicolons disappear

Recurring problem

  • In recent vscode, when the format code (shortcut alt + shift + F), semicolon baffling disappearance
    Here Insert Picture Description
  • Accustomed to scoring number for me, it seems very awkward ...

solution.

  • I am using prettierthis plugin to set formatting.
  • Installation is as follows:
    Click on the left side:
    Here Insert Picture Description
    search prettier, selectPrettier - Code formatter
    Here Insert Picture Description
  • After installing the Select 文件-> 首选项->设置
    Here Insert Picture Description
  • Here turn
    Here Insert Picture Description
    on the hook like QAQ
Published 177 original articles · won praise 22 · views 20000 +

Guess you like

Origin blog.csdn.net/piano9425/article/details/103637915