Mac vscode配置與常用插件安裝

一.首先下載mac版本的應(yīng)用,選擇對應(yīng)系統(tǒng)的應(yīng)用下載.

1.vscode下載地址https://code.visualstudio.com/Download

二.配置代碼格式

效果圖

1.找到設(shè)置,快捷鍵(Command+,),打開設(shè)置面板,在界面右上角有個帶箭頭文件,編輯這個文件復(fù)制粘貼以下代碼

{

? ? "editor.tabSize": 2,

? ? "files.associations": {

? ? ? ? "*.vue": "vue"

? ? },

? ? "eslint.autoFixOnSave": true,

? ? "eslint.options": {

? ? ? ? "extensions": [

? ? ? ? ? ? ".js",

? ? ? ? ? ? ".vue"

? ? ? ? ]

? ? },

? "eslint.validate": [

? ? ? "javascript",{

? ? ? ? ? "language": "vue",

? ? ? ? ? "autoFix": true

? ? ? },"html",

? ? ? "vue"

? ],

? ? "search.exclude": {

? ? ? ? "**/node_modules": true,

? ? ? ? "**/bower_components": true,

? ? ? ? "**/dist": true

? ? },

? ? "emmet.syntaxProfiles": {

? ? ? ? "javascript": "jsx",

? ? ? ? "vue": "html",

? ? ? ? "vue-html": "html"

? ? },

? ? "git.confirmSync": false,

? ? "window.zoomLevel": 0,

? ? "editor.renderWhitespace": "boundary",

? ? "editor.cursorBlinking": "smooth",

? ? "editor.minimap.enabled": true,

? ? "editor.minimap.renderCharacters": false,

? ? "editor.fontFamily": "'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",

? ? "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",

? ? "editor.codeLens": true,

? ? "editor.snippetSuggestions": "top",

? ? "workbench.iconTheme": "vscode-icons",

? ? "editor.fontSize": 15,

? ? "guides.enabled": false,

? ? "workbench.editor.showTabs": true,

? ? "editor.codeActionsOnSave": {

? ? ? ? "source.fixAll.eslint": true

? ? },

? ? "workbench.colorTheme": "Material Theme High Contrast",

? ? "C_Cpp.updateChannel": "Insiders",

? ? "http.proxySupport": "off",

? }

2.添加常用的插件


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容