1. Install the Prettier extension.
  2. In vscode Setting, find “Default Formatter”, choose “Prettier”.
  3. In vscode Setting, find “Format on Save”, click checkbox.