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