vscode的常用插件与插件开发
Visual Studio Code(VS code)是开发神器,通过插件配置不仅可以开发前端,还可以开发后端(java/go等),下面介绍一下vscode的常用插件与插件如何开发一个自己的插件。
nodejs
1 | curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash |
安装常用工具:
1 | npm install hexo-cli -g |
常用插件
安装以下插件: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#javascript
eslint
Color Picker
npm
Debugger for Chrome
Eclipse Keymap
#react
ES7 React/Redux/GraphQL/React-Native snippets
#vue
Vetur
Vue VSCode Snippets
#git
GitLens
zerofinance-git
#其他公共插件
Local History
XML Tools
Prettier
#https://zhuanlan.zhihu.com/p/54031899
koroFileHeader
AutoFileName
Import Cost
#java
Java Extension Pack
Spring Boot Extension Pack
Java Code Generators
Docker
#android/ios plugin
Android iOS Emulator
React Native Tools
#see debug:https://github.com/Microsoft/vscode-react-native/blob/master/doc/debugging.md#debugging-on-ios-device
#Install ios-deploy: npm install -g ios-deploy
代码注释
koroFileHeader添加注释,在全局的settings.json中添加:
参考:
1 | "editor.fontSize": 14, |
注意:Author和LastEditors填写自己的名字
文件头注释快捷键:window:ctrl+alt+i,mac:ctrl+cmd+i
函数注释快捷键:window:ctrl+alt+t,mac:ctrl+cmd+t
常用配置
可以放在全局的settings.json中,也可以放在各个项目的settings.json中:
1 | { |
插件开发
参考代码https://github.com/zhaoxunyong/vs-code-git-plugin
参考
- https://segmentfault.com/a/1190000008968904
- https://www.cnblogs.com/virde/p/vscode-extension-input-and-output.html
- https://github.com/steveukx/git-js
- https://www.jianshu.com/p/2b096d8ad9b8
- https://github.com/Microsoft/vscode-extension-samples
- https://www.jianshu.com/p/520c575e91c3
- https://segmentfault.com/a/1190000017279102
- https://segmentfault.com/a/1190000014758981
- https://dev.azure.com/it0815/_usersSettings/tokensteh2foynynfdqzxhwe3xqchgkno42yz7h4ergheqhjushrnqtfnq
- https://www.cnblogs.com/liuxianan/p/vscode-plugin-publish.html
- https://www.cnblogs.com/virde/p/vscode-extension-input-and-output.html
- https://www.cnblogs.com/virde/p/vscode-extension-input-and-output.html
- http://nodejs.cn/api/fs.html#fs_fs_unlinksync_path