1.vscode
用途:调试go,javascript, typescript, react, html
2.集成安装命令,拷贝到cmd窗口就可完成安装:
go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/lukehoban/go-find-references
go get -u -v github.com/lukehoban/go-outline
go get -u -v sourcegraph.com/sqs/goreturns
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v github.com/tpng/gopkgs
go get -u -v github.com/newhook/go-symbols
go get -u -v golang.org/x/tools/cmd/guru
go get -u github.com/alecthomas/gometalinter
gometalinter --install
3.安装插件
常用插件:
vscode-icons
Go
Vim
Power Mode
Quit Control for VSCode
Color Highlight
VS Color Picker
主题:
One Dark Pro
Material Theme
Dracula Official
Atom One Dark Theme
Dark+ Material
Material Dark Soda
Beautiful UI
其它插件:
Python
ESLint
Debugger for Chrome
PHP IntelliSense
Go Snippets
Open in browser
4.配置
(1)左下角配置按钮,弹出菜单选‘文件图标主题’,选择‘VSCode Icons’
(2)左下角配置按钮,弹出菜单选‘颜色主题’,选择‘Dark+(default dark)’
(3)配置文件还原:C:\Users\wyt\AppData\Roaming\Code\User\settings.json
golang调试
5.快捷键
0、打开配置界面:ctrl+,
1、注释:
a) 单行注释:[ctrl+k,ctrl+c] 或 ctrl+/
b) 取消单行注释:[ctrl+k,ctrl+u] (按下ctrl不放,再按k + u)
2、移动行:alt+up/down
3、显示/隐藏左侧目录栏 ctrl + b
5、删除当前行:shift + ctrl + k
13、字体放大/缩小: ctrl + ( + 或 - )
14、拆分编辑器 : ctrl + 1/2/3
18、切换全屏 : F11
21、全局查找文件:ctrl + shift + f
28、快速回到顶部 : ctrl + home
29、快速回到底部 : ctrl + end