概述
vscode是一個不錯的開源IDE,可以完全替代sublime,又是跨平臺,使用起來還比較方便.使用一段時間后,我覺得有些插件,值得推薦一下.我這里的開發(fā)環(huán)境是win10下vscode+Node.js
在vscode的主UI的左邊工具欄的最下邊,就是插件管理了,如下圖

beautify
這是一個代碼美化插件,一定要有
ESLint
這是一個代碼檢查的插件,一定要有,很不錯.下面是我的配置使用.eslintrc
module.exports = {
"env": {
"commonjs": true,
"es6": true,
"node": true
},
parser: "babel-eslint",
"parserOptions": {
"sourceType": "module",
},
"extends": "eslint:recommended",
"rules": {
"no-console": 0,
"semi": [2, "always"],
"no-this-before-super": 2,
"no-var": 2,
"no-cond-assign": 2, //禁止在條件表達式中使用賦值語句
"no-dupe-args": 2, //函數(shù)參數(shù)禁止重名
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-extra-semi": 0,
"no-constant-condition": 0,
"no-ex-assign": 2,
"no-func-assign": 2,
"no-extra-semi": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-unreachable": 2,
"use-isnan": 2,
"default-case": 2,
"no-invalid-this": 2,
"consistent-return": 0,
"valid-jsdoc": 2,
"block-scoped-var": 0,
"complexity": [2, 20],
"require-yield": 0,
"no-mixed-spaces-and-tabs": 2, //注釋格式要求JSDoc格式
"require-jsdoc": [2, {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false
}
}],
"linebreak-style": 0
}
};
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
JavaScript (ES6) code snippets
從node 6.x后,就支持JavaScript ES6很多語法了, 6.9.x開始,已經(jīng)支持99%的ES6了,所以這個插件很必要.
不能理解,node 6.x為什么不支持import
Numbered Bookmarks
一個書簽工具,還是很有必要的,但是感覺功能還比較弱
tortoise-svn
SVN的集成插件,雖然都用Git了,但svn還是很不錯的
VSCode Great Icons
這個是非常必要的,這個為每個文件類型增加了一個圖標,例得項目的目錄樹很直觀,這個一定要用.
最后
上述是我常用的插件,還有很多新插件,還不清楚,等大家一起發(fā)現(xiàn),有好的,都推薦一下.