我每次都必须手动启动 Prettier,因为它不会自动启动

时间:2021-01-06 23:42:28

标签: javascript visual-studio-code prettier

{
    "[html]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "liveServer.settings.donotShowInfoMsg": true,
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    "workbench.colorTheme": "Monokai Pro",
    "workbench.iconTheme": "vs-seti",
    "files.autoSave": "onFocusChange",
    "editor.fontSize": 18,
    "editor.multiCursorModifier": "ctrlCmd",
    "window.zoomLevel": 1,
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSaveMode": "modifications",
    "javascript.format.placeOpenBraceOnNewLineForFunctions": true,
    "prettier.arrowParens": "avoid",
    "prettier.jsxSingleQuote": true,
    "prettier.singleQuote": true,
    "prettier.tabWidth": 4,
    "prettier.useTabs": true,
    "editor.formatOnSave": true
}

Prettier at the right bottom without

默认格式化程序:esbenp.prettier-vscode 保存格式:点击 查看/命令面板/格式化文档/漂亮的代码格式化程序(默认)

虽然我已经按照上面的方法做了正确的设置,但是每次打开vscode的时候我都得开始更漂亮。 CTRL+S 一开始不会触发更漂亮。一旦我设置了<查看/命令调色板/格式化文档/漂亮的代码格式化程序(默认)>,它就会开始工作。 你知道它会有什么问题吗?

0 个答案:

没有答案
相关问题