亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

vscode有哪些插件好用? vscode部分插件的使用方法

  發(fā)布時間:2023-12-22 10:51:31   作者:佚名   我要評論
vscode有哪些插件好用?vscode中有很多插件,這些插件該怎么用呢?下面我們就來看看vscode部分插件的使用方法

vscode部分插件的使用方法

1、javascript console utils

選中對應(yīng)的變量,然后ctrl+shift+L,而ctrl+shift+D即可刪除本文件中所有的console.log()

2、Todo Tree

3、Vue Css Peek和vue-helper

這兩個插件時用于css跳轉(zhuǎn)和方法跳轉(zhuǎn)的,按ctrl鍵同時點擊即可完成跳轉(zhuǎn)

4、Css Tree

快速生成樣式樹,選中代碼塊,然后ctrl+shift+p

5、KoroFileHeader

安裝過后,在界面左下角點開設(shè)置,輸入fileheader

然后點擊settings中編輯

最后在其中加入如下代碼

 "fileheader.configObj": {
    "createFileTime": true,//設(shè)置為true則為文件新建時候作為date,否則注釋生成時間為date
    "autoAdd": true,//自動生成注釋,老是忘記的同學(xué)可以設(shè)置
    "annotationStr": {
      "head": "/*",
      "middle": " * @",
      "end": " */",
      "use": true//設(shè)置自定義注釋可用
    },
  },
  //函數(shù)注釋
  "fileheader.cursorMode": {
    "description":"",
    "param ":"",
    "return":""
  },
  // 文件頭部注釋
  "fileheader.customMade": {
    "Description":"" ,//文件內(nèi)容描述
    "Author":"cxk",//編輯人
    "Date": "Do not edit",//時間
    "LastEditTime": "Do not edit",
    "LastEditors": "cxk",
  }
  • 文件頭部注釋:快捷鍵:crtl+alt+i
  • 文件頭部注釋:快捷鍵:crtl+alt+t

6、GitLens — Git supercharged

這個是可以看到當前代碼上一個提交的作者是誰、提交時間,在多人協(xié)作的代碼里面非常好用

7、Image preview

當鼠標懸浮到img時,會產(chǎn)生實時預(yù)覽大圖的功能

8、indent-rainbow

這個可以使代碼排版更整齊

9、px to rem & rpx & vw (cssrem)

可以快速的使px轉(zhuǎn)換為rem

10、個人的settings的配置如下

{
  "editor.formatOnSave": true,
  // "eslint.autoFixOnSave": true,
  // 自動修復(fù)
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
  },
  // 配置 ESLint 檢查的文件類型
  "eslint.validate": ["javascript","vue","html"],
  "window.zoomLevel": 1,
  "editor.fontSize": 16,
  "git.confirmSync": false,
  "editor.tabSize": 2,
  "editor.detectIndentation": false,
  "workbench.settings.useSplitJSON": true,
  "files.autoSaveDelay": 1000,
  "browserSync.config": {
  },
  "beautify.language": {
    "js": {
      "type": [
        "javascript",
        "json",
        "jsonc"
      ],
      "filename": [
        ".jshintrc",
        ".jsbeautifyrc"
      ]
    },
    "css": [
      "css",
      "less",
      "scss"
    ],
    "html": [
      "htm",
      "html",
      "vue"
    ]
  },
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "dart.debugExternalLibraries": true,
  "thiefBook.filePath": "C:\\Users\\Administrator\\Documents\\山溝皇帝.txt",
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "todo-tree.tree.showScanModeButton": false,
  "vetur.ignoreProjectWarning": true,
  "emmet.excludeLanguages": [
    "markdown"
  ],
  "fileheader.configObj": {
    "createFileTime": true,//設(shè)置為true則為文件新建時候作為date,否則注釋生成時間為date
    "autoAdd": true,//自動生成注釋,老是忘記的同學(xué)可以設(shè)置
    "annotationStr": {
      "head": "/*",
      "middle": " * @",
      "end": " */",
      "use": true//設(shè)置自定義注釋可用
    },
  },
  "fileheader.cursorMode": {
    "description":"",
    "param ":"",
    "return":""
  },
  "fileheader.customMade": {
    "Description":"" ,//文件內(nèi)容描述
    "Author":"cxk",//編輯人
    "Date": "Do not edit",//時間
    "LastEditTime": "Do not edit",
    "LastEditors": "cxk",
  }
}

以上就是vscode部分插件的使用方法,希望大家喜歡,請繼續(xù)關(guān)注腳本之家。

相關(guān)推薦:

vscode常用插件有哪些? VSCode經(jīng)典插件推薦

vscode中prettier插件怎么使用? vscode中prettier的用法

vscode插件Markdown PDF插件轉(zhuǎn)換PDF錯誤該怎么辦?

相關(guān)文章

最新評論