vscode 切换分支后横向格式化失效
vscode 切换分支后横向格式化为竖排, 必须重启编辑器才能继续格式化为横向,这怎么禁止格式为竖排呢?
`
{
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.mouseWheelZoom": true,
"editor.fontLigatures": true,
"extensions.ignoreRecommendations": true,
"html.format.indentInnerHtml": true,
"javascript.implicitProjectConfig.checkJs": true,
"editor.wordWrap": "off",
"search.followSymlinks": false,
"window.zoomLevel": -1,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"emmet.triggerExpansionOnTab": true,
"editor.multiCursorModifier": "ctrlCmd",
"git.enableSmartCommit": true,
"git.confirmSync": false,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "auto"
}
},
"path-intellisense.extensionOnImport": true,
"editor.tabSize": 2,
"editor.fontFamily": "Consolas, 'Courier New', monospace",
"editor.minimap.enabled": true,
"files.associations": {
"*.vue": "vue"
},
"workbench.sideBar.location": "left",
"terminal.integrated.rendererType": "dom",
"editor.detectIndentation": false,
// "eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "vue",
"autoFix": true
}
],
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"vetur.format.defaultFormatter.js": "vscode-typescript",
"explorer.confirmDragAndDrop": false,
"editor.renderWhitespace": "boundary",
"editor.tabCompletion": "on",
"files.defaultLanguage": "javascript",
"vetur.completion.useScaffoldSnippets": false,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"javascript.updateImportsOnFileMove.enabled": "always",
"diffEditor.renderSideBySide": false,
"window.openFilesInNewWindow": "on",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.fontSize": 13,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"workbench.iconTheme": "vscode-icons",
"vsicons.dontShowNewVersionMessage": true
}
`
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已解决,因为Prettier -Code formater 插件影响的,把这个插件卸载了就好了