Vs code 配置
阿新 • • 發佈:2020-09-23
mac:
settings.json
{ "editor.mouseWheelZoom": true, //可以按著ctrl 加滾輪 縮放視窗字型大小 "workbench.colorTheme": "Monokai Dimmed", "editor.wordWrap": "on", //軟換行 "explorer.openEditors.visible": 1, "window.zoomLevel": 0, "diffEditor.ignoreTrimWhitespace": false, "editor.renderLineHighlight": "gutter", // 在“開啟的編輯器”窗格中顯示的編輯器數量。 // eslint相關 start-------- "editor.formatOnSave": false, // 必須關閉vs code 的預設儲存格式化 "editor.codeActionsOnSave": { "source.fixAll.eslint": true // 用專案的eslint規則 格式化程式碼 }, "eslint.validate": [ "javascript", "vue", "html", "css" ], "editor.detectIndentation": false, "vetur.format.defaultFormatter.html": "none", "vetur.format.defaultFormatter.js": "none", "vetur.format.options.tabSize": 4, "workbench.iconTheme": "material-icon-theme", // eslint相關結束 end------ }
[ { "key": "alt+cmd+s", "command": "workbench.action.files.save" }, { "key": "cmd+s", "command": "-workbench.action.files.save" }, { "key": "cmd+s", "command": "workbench.action.files.saveAll" }, { "key": "alt+cmd+s", "command": "-workbench.action.files.saveAll" }, { "key": "shift+alt+down", "command": "editor.action.addSelectionToNextFindMatch", "when": "editorFocus" }, { "key": "cmd+d", "command": "-editor.action.addSelectionToNextFindMatch", "when": "editorFocus" }, { "key": "cmd+d", "command": "editor.action.copyLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "shift+alt+down", "command": "-editor.action.copyLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, { "key": "shift+enter", "command": "editor.action.insertLineAfter", "when": "editorTextFocus && !editorReadonly" }, { "key": "cmd+enter", "command": "-editor.action.insertLineAfter", "when": "editorTextFocus && !editorReadonly" } ]