visual studio code 的必装推荐插件plugin, vscode, vsc
An Old Hope Theme (theme, 推荐,且推荐它的 classic theme,安装后在颜色选项里选择,该插件的定制见文末)
Cobalt2 (theme)
Dracula for Visual Studio Code (theme)
markdownlint
Go for Visual Studio Code (https://github.com/Microsoft/vscode-go)
GitLens
Git History, Search and More (including git log)
Project Manager
Trailing Spaces
Stylelint
ESLint
Path Intellisense
IntelliSense for CSS class names
CSS Peek
Open in browser
Language support for Java
Debugger for Java
Maven for Java
Python extension for Visual Studio Code
Node.js Modules Intellisense
Rainbow Brackets
VS Code Glide
Visual Studio Code extension for GitExtensions
Text Marker (publisher: Ryuichi Inagaki) (你可以这样安装:打开 VS Code Quick Open (Ctrl+P
),然后运行 ext install ryu1kn.text-marker)
Settings Sync
Clipboard History
vim (or vscodevim) Vim mode for Visual Studio Code, https://github.com/VSCodeVim/Vim (自定义的配置如下:配置完了重启才会生效 )
"vim.leader": " ",
"vim.cmdLineInitialColon": true,
"vim.history": ,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": ["j", "k"],
"after": ["<Esc>"]
},
{
"before": ["k", "j"],
"after": ["<Esc>"]
}
],
"vim.visualstar": true,
"vim.easymotion": true,
"vim.easymotionMarkerBackgroundColor": "#FFFFFF",
"vim.easymotionMarkerForegroundColorOneChar": "#191970",
"vim.easymotionMarkerForegroundColorTwoChar": "#000000",
"vim.easymotionMarkerWidthPerChar": ,
"vim.easymotionMarkerHeight":
使用说明,gd 可以跳转到定义,gh可以打印变量/函数的帮助; easymotion的使用(本页可见区域的跳转):<leader><leader> w
向forward索引单词,<leader><leader> b
向backward索引单词, <leader><leader> j
向forward索引行首,<leader><leader> k
向backward索引行首,<leader><leader> / <char>... <CR> 搜索多个字符。
<leader><leader> s <char>
搜单个字符, <leader><leader> f <char> 向forward搜单个字符,
<leader><leader> F <char> 向backward搜单个字符。
gometalinter
visual studio code 在使用 golint 作为代码检查工具的时候提示 exported method should have comment or be unexported, 烦人,可以使用 gometalinter 进行替代:
gometalinter 简介
该工具基本上集成了目前市场上所有的检测工具,然后可以并发的帮你静态分析你的代码,集成的工具如下:
deadcode
dupl
errcheck
gas
goconst
gocyclo
goimports
golint
gosimple
gotype
gotypex
ineffassign
interfacer
lll
maligned
megacheck
misspell
nakedret
safesql
staticcheck
structcheck
unconvert
unparam
unused
varcheck
vet
gometalinter安装:
go get -u -v github.com/alecthomas/gometalinter
gometalinter --install --update # 这步最好也运行下,更新gometalinter所需要的工具
gometalinter 的使用
cd 到go项目下,执行 gometalinter ./... 即检查所有目录的go文件,此时vendor目录下的也会检测。
如果是想指定指定目录,执行 gometalinter + 文件夹名。
vscode集成gometalinter
vscode 默认使用的是golint,如果想用gometalinter替换golint,直接打开设置项,在用户设置里添加"go.lintTool": "gometalinter"即可。
Settings Sync 插件的使用:
1, 安装插件并重启VSCODE
2, 重启后按快捷键 alt+shift+u (这里假设你第一次用)
它会弹出一个窗口对应的是github上面的创建个人gist的页面,如果未登录请先登录github. 我的专为 vscode settings sync 生成的 key 见我的邮件,邮件里搜索 github git key for vscode settings sync
3, 切回到vscode,他会有个输入区,就是存放刚才生成的key.
然后理论上他就开始对你本机的配置进行一个扫描上传了.至此上传工作完成.
接下来我们到另一台电脑上了下载配置.同样的先安装Settings Sync插件,并重新加载.
然后按快捷键alt+shift+d,就应该会弹出一个输入框,请在这里输入之前保存下来的key(GIST ID),回车后将会自动下载之前上传的配置.
那么下载完成后,你这台电脑修改了相关配置再次上传就好了.是不是感觉方便多了~
其他的说明,如果在输入gist id写错了,读取不到的情况下,大概需要重置设置,按F1,输入sync,这里有重置选项.试试看~
如果由于该插件的单词高亮颜色很不友好,解决办法是在vscode 的settings里自己定义,即增加如下行:
"workbench.colorCustomizations": {
"editor.selectionHighlightBackground": "#0b3f53",
// "editor.selectionBackground": "#1d6980",
}
具体的意思请参考官网: https://code.visualstudio.com/docs/getstarted/theme-color-reference#_editor-colors
visual studio code 的必装推荐插件plugin, vscode, vsc的更多相关文章
- visual studio code 编辑器的配置及快捷键等, vscode, csc
visual studio code (vsc) 对开发node.js,javascript,python,html,golang等比较友好,同时支持git浏览及分屏对比,运行速度快,所以是值得一用的 ...
- visual studio code开发代码片段扩展插件
背景 visual studio code编辑器强大在于可以自己扩展插件,不仅可以去插件市场下载,也可以按照官方的API很方便的制作适合自己的插件: 自己最近在开发一个手机端网站项目,基于vant项目 ...
- visual studio code 中 debugger for chrome 插件的配置
安装 debugger for chrome 插件后,把默认的 launch.json 改成: { "name": "谷歌浏览器", "type&qu ...
- Visual Studio Code的设置及插件同步
Visual Studio Code的设置及插件同步 使用Visual Studio Code开发有一段时间了,用起来是极其的顺手,但是唯独一点不爽的就是,Visual Studio Code不像Vi ...
- ubuntu14.04 LTS Visual Studio Code 编辑器推荐
除了ubuntu geany (茶壶图标) 这个一直爱好的编辑器,发现一个新的编辑器“Visual Studio Code”,也是很好用,记录下 https://code.visualstudio.c ...
- 使用Visual Studio Code 开发 ESP8266
使用Visual Studio Code 开发 ESP8266 ESP8266+ArduinoIDE+VSCode开发ESP8266. 首先说明一下ESP8266并不是某一WiFi模块的名字(我以前是 ...
- 在 Visual Studio Code 中使用 PoweShell - CodeShell
一直希望在 Visual Studio Code 中使用 PowerShell,插件 CodeShell 提供了对于 PowerShell 的支持. 安装 首先按 F1,打开命令窗口,输入安装插件的命 ...
- 使用Visual Studio Code开发.NET Core看这篇就够了
作者:依乐祝 原文地址:https://www.cnblogs.com/yilezhu/p/9926078.html 在本文中,我将带着大家一步一步的通过图文的形式来演示如何在Visual Studi ...
- Create A .NET Core Development Environment Using Visual Studio Code
https://www.c-sharpcorner.com/article/create-a-net-core-development-environment-using-visual-studio- ...
随机推荐
- jquery.gritter.js简介
Gritter 是一个小型的 jQuery 消息通知插件,通知效果如下图所示: 参考网
- cookie设置在特定时间点过期的方法
假设需求为:在当天晚上0:00过期. 方法: 得到当天晚上0:00这个时间点的一个时间. function getNextDate(){ var d = new Date(), ...
- 给用户授予权限时应该尽量避免ANY系统权限
Oracle推荐给用户授予权限时,给予用户可以完成操作的最小权限.应当尽量避免对用户授予包含ANY的系统权限,如SELECT ANY TABLE,CREATE ANY TABLE等.这些包含ANY的系 ...
- C陷阱与缺陷读书笔记
2.1理解函数声明 这一章仔细分析了(*(void(*)())0)();这条语句的含义,并且提到了typedef的一种函数指针类型定义的用法. 我们经常用到的typedef用法是用于指定结构体的类型, ...
- Oracle 学习之exists
不相关子查询:子查询的查询条件不依赖于父查询的称为不相关子查询.相关子查询:子查询的查询条件依赖于外层父查询的某个属性值的称为相关子查询,带EXISTS 的子查询就是相关子查询EXISTS表示存在量词 ...
- filter对数组和对象的过滤
1,对数组的过滤 let arr = ['1', '2', '3'] let b = arr.filter(val => val === '2') console.log(b) // ['2] ...
- php-config
php-config php-config 是一个简单的命令行脚本用于获取所安装的 PHP 配置的信息. 在编译扩展时,如果安装有多个 PHP 版本,可以在配置时用 --with-php-config ...
- dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
这两个变量被设置了 DYLD_LIBRARY_PATH *或* LD_LIBRARY_PATH, 用下面的明令查找一下,一般在.bash_profile, .bashrc 等文件中.执行brew do ...
- Egret容器的鼠标默认事件
容器的鼠标默认事件 touchEnabled touchChildren touchThrough DisplayObject false \ \ DisplayObjectContainer f ...
- dhroid - Dhdb orm简化sqlite数据库操作
android数据库其实使用的不多,dhroid框架中的网络缓存使用了数据库我就写了也写了一个数据库操作工具 dhroid 数据库基本还是单表操作多,为了简单我只做了单表,那些级联,懒加载,什么的分两 ...