成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專欄INFORMATION COLUMN

VS Code配置及插件推薦

wpw / 1944人閱讀

摘要:宋體以像素為單位控制字號(hào)。將其設(shè)置為可隱藏窗格。是否已啟用自動(dòng)刷新是否啟用自動(dòng)拉取以像素為單位控制終端的字號(hào),這是的默認(rèn)值。要求工作區(qū)使用高于版本的。

用戶設(shè)置

打開 文件 > 首選項(xiàng) > 用戶設(shè)置(U),(忽略覆蓋工作區(qū)提示)

{
  // 一個(gè)制表符等于的空格數(shù)。該設(shè)置在 `editor.detectIndentation` 啟用時(shí)根據(jù)文件內(nèi)容進(jìn)行重寫。
  "editor.tabSize": 2,
  "editor.lineHeight": 24,
  "editor.renderLineHighlight": "none",
  "editor.renderWhitespace": "none",
  // 控制字體系列。
  "editor.fontFamily": ""Fira Code", Consolas, "Courier New", monospace,"宋體"",
  "editor.fontLigatures": true,
  // 以像素為單位控制字號(hào)。
  "editor.fontSize": 14,
  "editor.cursorBlinking": "smooth",
  "editor.wordWrap": "on",
  "editor.formatOnSave": true,
  "editor.formatOnPaste": true,
  // 控制選取范圍是否有圓角
  "editor.roundedSelection": false,
  // 建議小組件的字號(hào)
  "editor.suggestFontSize": 16,
  // 是否允許自定義的snippet片段提示,比如自定義的vue片段開啟后就可以智能提示
  "editor.snippetSuggestions": "top",
  "editor.quickSuggestions": {
    "strings": true
  },
  // 執(zhí)行文字相關(guān)的導(dǎo)航或操作時(shí)將用作文字分隔符的字符
  "editor.wordSeparators": "./()"":,.;<>~!@#$%^&*|+=[]{}`~?",
  // 在“打開的編輯器”窗格中顯示的編輯器數(shù)量。將其設(shè)置為 0 可隱藏窗格。
  "explorer.openEditors.visible": 0,
  "git.path": "D:/Program Files/Git/bin/git.exe",
  // 是否已啟用自動(dòng)刷新
  "git.autorefresh": true,
  // git是否啟用自動(dòng)拉取
  "git.autofetch": false,
  // 以像素為單位控制終端的字號(hào),這是 editor.fontSize 的默認(rèn)值。
  "terminal.integrated.fontSize": 14,
  // 控制終端游標(biāo)是否閃爍。
  "terminal.integrated.cursorBlinking": true,
  "workbench.startupEditor": "newUntitledFile",
  "workbench.iconTheme": "eq-material-theme-icons-palenight",
  "workbench.colorTheme": "Material Theme Palenight High Contrast",
  "materialTheme.fixIconsRunning": false,
  "html.suggest.angular1": false,
  "html.suggest.ionic": false,
  "files.trimTrailingWhitespace": true,
  // VScode 文件搜索區(qū)域配置
  "search.exclude": {
    "**/dist": true,
    "**/build": true,
    "**/elehukouben": true,
    "**/.git": true,
    "**/.gitignore": true,
    "**/.svn": true,
    "**/.DS_Store": true,
    "**/.idea": true,
    "**/.vscode": false,
    "**/yarn.lock": true,
    "**/tmp": true
  },
  // 排除文件搜索區(qū)域,比如node_modules(貼心的默認(rèn)設(shè)置已經(jīng)屏蔽了)
  "files.exclude": {
    "**/.idea": true,
    "**/yarn.lock": true,
    "**/tmp": true
  },
  // 配置文件關(guān)聯(lián),以便啟用對(duì)應(yīng)的智能提示,比如wxss使用css
  "files.associations": {
    "*.vue": "vue",
    "*.wxss": "css"
  },
  // 配置emmet是否啟用tab展開縮寫
  "emmet.triggerExpansionOnTab": true,
  // 配置emmet對(duì)文件類型的支持,比如vue后綴文件按照html文件來(lái)進(jìn)行emmet擴(kuò)寫
  "emmet.syntaxProfiles": {
    "vue-html": "html",
    "vue": "html",
    "javascript": "javascriptreact",
    // xml類型文件默認(rèn)都是單引號(hào),開啟對(duì)非單引號(hào)的emmet識(shí)別
    "xml": {
      "attr_quotes": "single"
    }
  },
  // 在react的jsx中添加對(duì)emmet的支持
  "emmet.includeLanguages": {
    "jsx-sublime-babel-tags": "javascriptreact"
  },
  // 是否開啟eslint檢測(cè)
  "eslint.enable": true,
  // 文件保存時(shí),是否自動(dòng)根據(jù)eslint進(jìn)行格式化
  "eslint.autoFixOnSave": true,
  // eslint配置文件
  "eslint.options": {
    "plugins": [
      "html",
      "javascript",
      {
        "language": "vue",
        "autoFix": true
      },
      "vue"
    ]
  },
  // eslint能夠識(shí)別的文件后綴類型
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    "vue",
    {
      "language": "html",
      "autoFix": true
    },
    "typescript",
    "typescriptreact"
  ],
  // 快捷鍵方案,使用sublime的一套快捷鍵
  "sublimeTextKeymap.promptV3Features": true,
  // 格式化快捷鍵 shirt+alt+F
  // prettier進(jìn)行格式化時(shí)是否安裝eslint配置去執(zhí)行,建議false
  "prettier.eslintIntegration": true,
  //分號(hào)
  "prettier.semi": false,
  // 如果為true,將使用單引號(hào)而不是雙引號(hào)
  "prettier.singleQuote": true,
  "prettier.tabWidth": 2,
  "prettier.useTabs": false,
  // vetur插件格式化使用beautify內(nèi)置規(guī)則
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  //函數(shù)前加空格
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  // 沒(méi)有下邊這個(gè) 上邊不生效
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  // 細(xì)節(jié),配置gitlen中g(shù)it提交歷史記錄的信息顯示情況
  "gitlens.advanced.messages": {
    "suppressCommitHasNoPreviousCommitWarning": false,
    "suppressCommitNotFoundWarning": false,
    "suppressFileNotUnderSourceControlWarning": false,
    "suppressGitVersionWarning": false,
    "suppressLineUncommittedWarning": false,
    "suppressNoRepositoryWarning": false,
    "suppressResultsExplorerNotice": false,
    "suppressUpdateNotice": true,
    "suppressWelcomeNotice": false
  },
  // 對(duì)不屬于任何工程的 JavaScript 文件啟用或禁用 "experimentalDecorators" 設(shè)置。若有 jsconfig.json 或 tsconfig.json 文件,將覆蓋此設(shè)置。要求工作區(qū)使用高于 2.3.1 版本的 TypeScript。
  "javascript.implicitProjectConfig.experimentalDecorators": true,
  "powermode.enabled": true,
  "powermode.presets": "flames",
  // 開啟apicloud在vscode中的wifi真機(jī)同步
  "apicloud.port": "23450",
  // 設(shè)置apicloud在vscode中的wifi真機(jī)同步根目錄
  "apicloud.subdirectories": "/apiclouduser",
  "terminal.integrated.shell.windows": "C:WindowsSystem32WindowsPowerShellv1.0powershell.exe"
}
用戶代碼片段

打開 文件 > 首選項(xiàng) > 用戶代碼片段 > (搜索代碼語(yǔ)言)

HTML片段

{
    "ss": {
        "prefix": "ss",
        "body": [
            ""
        ],
        "description": ""
    },
    "html5": {
        "prefix": "html5",
        "body": [
            "",
            "",
            "",
            "",
            "  ",
            "  ",
            "  ",
            "  ${1:Document}",
            "",
            "",
            "",
            "  $2",
            "",
            "",
            ""
        ],
        "description": "HTML5"
    }
}

JavaScript / JavaScript React

{
    "cl": {
        "prefix": "cl",
        "body": [
            "console.log($1)"
        ],
        "description": "console.log("")"
    },
    "dg": {
        "prefix": "dg",
        "body": [
            "document.getElementById($1)"
        ],
        "description": "document.getElementById(id)"
    },
    "jsdoc": {
        "prefix": "__",
        "body": [
            "/**",
            " * $1",
            " */"
        ],
        "description": "/** */"
    }
}
快捷鍵設(shè)置
// 將鍵綁定放入此文件中以覆蓋默認(rèn)值
[
    // ctrl+shift+d 復(fù)制當(dāng)前行到下一行
    {
        "key": "ctrl+shift+d",
        "command": "editor.action.copyLinesDownAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    // ctrl+shift+f 格式化代碼
    {
        "key": "ctrl+shift+f",
        "command": "editor.action.formatDocument",
        "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
    },
    // alt+/ 代碼提示
    {
        "key": "alt+/",
        "command": "editor.action.triggerSuggest",
        "when": "editorTextFocus"
    },
    // ctrl+shift+/ 多行注釋
    {
        "key": "ctrl+shift+/",
        "command": "editor.action.blockComment",
        "when": "editorTextFocus"
    }
]
插件推薦

提示:VS Code自帶有代碼格式化功能,可以格式化HTML、CSS、JavaScript、JSON文件,格式JSX文件時(shí)需要設(shè)置縮進(jìn)方式為空格·

Auto Close Tag (自動(dòng)關(guān)閉HTML標(biāo)簽)
Auto Rename Tag (HTML標(biāo)簽自動(dòng)改名)
Babel ES6/ES7 
VS Code JavaScript (ES6) snippets (ES6語(yǔ)法提示)
Beautify css/sass/scss/less
Brackets Light (主題)
Complete JSDoc Tags (js文檔注釋提示)
Git History (查看git提交記錄)
HTML CSS Support (HTML中提示可用的class)
npm Intellisense (提示可以require的模塊名稱(最新版的vscode已經(jīng)集成此功能))
One Dark Theme (主題)
Path Intellisense (路徑補(bǔ)全)
Prettier (格式化,使用標(biāo)準(zhǔn)風(fēng)格,快捷鍵 alt+shift +F)
Reactjs code snippets (reactjs代碼提示)
Sass
SCSS IntelliSense
Sublime Babel
Sublime Text Keymap for VS Code (sublime鍵映射)
VSCode Great Icons (文件圖標(biāo))
vscode-icons (文件圖標(biāo))
HTMLHint (html代碼檢查)
HTML Snippets (超級(jí)實(shí)用且初級(jí)的 H5代碼片段以及提示)
Document this (js 的注釋模板 (注意:新版的vscode已經(jīng)原生支持,在function上輸入/** tab))
cssrem (將css中的px自動(dòng)轉(zhuǎn)換為rem.再也不用計(jì)算器了)
Vetur (添加對(duì).vue后綴文件的快速書寫支持)
Vue 2 Snippets (快速新建vue頁(yè)面)
主題、文件圖標(biāo)推薦

主題我用的是:Atom One Dark Theme(theme-oceanicnext、Dracula)

文件圖標(biāo)我用的是:VSCode Great Icons

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/81856.html

相關(guān)文章

  • 前端(HTML css JS)開發(fā)工具常用插件推薦

    摘要:前端編程工具有很多,例如簡(jiǎn)稱,,,,等等,今天給大家推薦的是是一個(gè)完全免費(fèi)的軟件,頁(yè)面簡(jiǎn)介大方,是前端開發(fā)者最受歡迎的軟件之一。 前端編程工具有很多,例如Visua...

    betacat 評(píng)論0 收藏0
  • VS Code上手與超實(shí)用插件安利

    摘要:軟件跨平臺(tái)支持以及,運(yùn)行流暢,可謂是微軟的良心之作微軟有這個(gè)宇宙最強(qiáng),自然也不會(huì)弱宇宙最強(qiáng)編輯器說(shuō)到代碼編輯器,我們有必要提一提還有。 原文鏈接:VS Code上手與超實(shí)用插件安利 工欲善其事必先利其器 Visual Studio Code (簡(jiǎn)稱 VS Code / VSC) 是一款免費(fèi)開源的現(xiàn)代化輕量級(jí)代碼編輯器,支持幾乎所有主流的開發(fā)語(yǔ)言的語(yǔ)法高亮、智能代碼補(bǔ)全、自定義熱鍵、括號(hào)...

    miracledan 評(píng)論0 收藏0
  • 高效開發(fā)者是如何個(gè)性化VS Code插件配置的?

    摘要:由于本身不能個(gè)性化配置,有時(shí)可能會(huì)引起不適,但是至少保證團(tuán)隊(duì)成員可以輕易統(tǒng)一代碼風(fēng)格。就是將多于一個(gè)字母的合成一個(gè)字形。自從年雙十一正式上線,累計(jì)處理了億錯(cuò)誤事件,得到了金山軟件等眾多知名用戶的認(rèn)可。 譯者按: IDE是生產(chǎn)力的保證! 原文:Visual Studio Code Settings and Extensions for Faster JavaScript Develop...

    shenhualong 評(píng)論0 收藏0
  • 前端開發(fā) VS Code 上手使用

    摘要:如果想配置開發(fā)工具面向前端及開發(fā)人員的配置如果想配置開發(fā)工具配置及使用技巧所謂網(wǎng)紅編輯器,我覺得比來(lái)的更爽,因?yàn)榈乃胁僮骱筒寮?,?duì)于來(lái)說(shuō)也就是一個(gè)插件就能無(wú)縫兼容。作為一個(gè)前端開發(fā),開箱即用的代碼編輯高亮提示都十分友好。 如果想配置 sublime 開發(fā)工具 => 面向web前端及node開發(fā)人員的vim配置 如果想配置 vim 開發(fā)工具 => sublime配置及使用技巧 所謂網(wǎng)紅...

    Ocean 評(píng)論0 收藏0
  • VS code-前端配置_022

    摘要:前端配置簡(jiǎn)體中文插件,一般會(huì)自動(dòng)識(shí)別你的環(huán)境,自動(dòng)提示是否需要簡(jiǎn)體中文的語(yǔ)言包。使用插件將目前配置保存到上,以后只需要從上獲取,就可以一次性安裝插件配置信息。 VS code-前端配置 showImg(https://segmentfault.com/img/bVbuK6l?w=1224&h=999); Chinese (Simplified) Language Pack for Vi...

    cyrils 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<