濮阳杆衣贸易有限公司

主頁 > 知識庫 > vsCode中配置setings.json的技巧

vsCode中配置setings.json的技巧

熱門標(biāo)簽:鶴壁外呼系統(tǒng)公司 華創(chuàng)e路航彩票銷售點地圖標(biāo)注 銀川語音外呼系統(tǒng)中心 揭陽電腦外呼系統(tǒng)公司 外呼系統(tǒng)號顯示星號怎么看 高德地圖標(biāo)注常顯 臨沂ai電銷機器人招商 承德地圖標(biāo)注公司收費 suitecrm 地圖標(biāo)注

在前端開發(fā)中,有一個非常好用的工具,Visual Studio Code,簡稱VS code。都不用我安利VS code,大家就會乖乖的去用,無數(shù)個大言不慚的攻城獅,都被VS code比德芙還絲滑的強大功能所折服。

現(xiàn)在使用Vscode編碼的人越來越多,憑借著免費,開源,輕量,跨平臺的特點收貨了一大批忠實粉絲 最近因項目需要開始使用Vscode,因此做了一番研究,現(xiàn)在把個人的一些小經(jīng)驗分享給大家,首先我們來看看setings.json配置

{
"window.zoomLevel": 1,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"editor.quickSuggestions": {
"strings": true
},
"fileheader.customMade": { //此為頭部注釋
"Description": "",
"Autor": "wangDuJuan",
"Date": "Do not edit"
// "LastEditors": "liujun",
// "LastEditTime": "Do not edit"
},
"fileheader.cursorMode": { //此為函數(shù)注釋
"description": "",
"param": "",
"return": "",
"author": "wangDuJuan"
},
// 保存時自動格式化
"eslint.autoFixOnSave": true,
// 用來配置作用的文件類型
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
],
"beautify.config": {
"indent_size": 4, //縮進大小,默認(rèn)4
"indent_char": " ", //縮進字符,默認(rèn)" "
"css": {
"indent_size": 2
},
"eol": "n", //end of line,行結(jié)尾字符"n"
"indent_level": 0, //初始縮進級別
"indent_with_tabs": false, //使用tab縮進,將會覆蓋“indent_size”和“indent_char”設(shè)置,默認(rèn)false
"preserve_newlines": true, //保留空行,默認(rèn)“true”
"max_preserve_newlines": 10, //一次最多保留多少行的空行,默認(rèn)10
"jslint_happy": false, //開啟jslint-stricter的嚴(yán)格模式(強制開啟“space_after_anon_function”選項),默認(rèn)false
"space_after_anon_function": false, //在匿名函數(shù)前自動加一個空格,比如function (){},默認(rèn)false
"brace_style": "collapse,preserve-inline", //括號風(fēng)格,"collapse-preserve-inline", "collapse", "expand", "end-expand", or "none" ,默認(rèn)“collapse”
"keep_array_indentation": false, //保持?jǐn)?shù)組縮進,默認(rèn)false
"keep_function_indentation": false, //保持函數(shù)縮進,默認(rèn)false
"space_before_conditional": true, //在條件語句之前保留一個空格,默認(rèn)true
"break_chained_methods": false, //中斷多行間的鏈?zhǔn)椒椒ㄕ{(diào)用,默認(rèn)true
"eval_code": false,
"unescape_strings": false, //解碼用xNN編碼的可打印字符,默認(rèn)false
"wrap_line_length": 0, //Wrap lines at next opportunity after N characters. (Set zero to ignore wrapping),默認(rèn)0,下次在n個字符后換行
"wrap_attributes": "auto", //將html屬性標(biāo)簽放在新行“auto”,“force”,默認(rèn)auto
"wrap_attributes_indent_size": 4, //html屬性標(biāo)簽新行縮進字符數(shù),默認(rèn)為"indent_size"4
"end_with_newline": false //在文件結(jié)尾保證有換行,默認(rèn)false
},
"beautify.language": {
"js": {
"type": [
"javascript",
"json",
"typescript"
],
"filename": [
".jshintrc",
".jsbeautify"
]
},
"css": [
"css",
"scss",
"sass"
],
"html": [
"htm",
"html",
"vue"
]
},
"[scss]": {

},
"[typescript]": {

},
"workbench.iconTheme": "vscode-icons",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[vue]": {
"editor.defaultFormatter": "HookyQR.beautify"
}

}

您可能感興趣的文章:
  • vscode配置遠程開發(fā)與免密登錄的技巧
  • 詳解可以用在VS Code中的正則表達式小技巧
  • VS Code有哪些奇技淫巧(必知)

標(biāo)簽:棗莊 許昌 忻州 汕尾 七臺河 三沙 咸寧 萊蕪

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《vsCode中配置setings.json的技巧》,本文關(guān)鍵詞  vsCode,中,配置,setings.json,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《vsCode中配置setings.json的技巧》相關(guān)的同類信息!
  • 本頁收集關(guān)于vsCode中配置setings.json的技巧的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    巴林左旗| 利津县| 遵义市| 晋城| 城步| 海伦市| 安达市| 中阳县| 万全县| 鲁甸县| 清镇市| 涡阳县| 兴和县| 陆川县| 闽侯县| 顺平县| 信阳市| 恩平市| 青海省| 克什克腾旗| 布尔津县| 淮北市| 长丰县| 德阳市| 兴仁县| 阿合奇县| 宣城市| 金华市| 大石桥市| 军事| 盘锦市| 嘉定区| 龙江县| 广宗县| 米脂县| 广元市| 尤溪县| 永川市| 唐山市| 土默特左旗| 荣昌县|