vscode 实用配置

2020-06-11  本文已影响0人  xyz098

install

快捷键

文件、窗口、代码跳转、终端、用户snippets设置、断点、汉化插件

功能 操作
创建文件 ctrl+n 、 ⌘N
关闭文件 ctrl+w
保存文件 ctrl+s
创建vscode窗口 ctrl+shift+n
关闭vscode窗口 ctrl+shift+w
主命令 ctrl+shift+p
直接跳转到文件 ctrl+p 后输入文件名
列出当前可执行动作 ctrl+p 后输入?
跳到指定行数 ctrl+p 后输入:
跳转到指定函数或变量 ctrl+p 后输入@
文件切换 crtl+tab 或 alt+左右箭头
跳到函数定义 F12
查看函数定义 alt+F12
windows回退一步 alt + <—
windows前进一步 alt + —>
mac回退 ctrl+-
mac前进 ctrl+shift+-
快速打开浏览器 alt+shfit+b
格式化代码 shift+alt+f
显示左侧 ctrl+B
打开终端 ctrl+`
快速生成html文档 !+回车
gitbash进入目录快速调用vscode打开目录 code .
运行代码调试 F5双击
设置断点 F9

language

golang

python

vue

plugin

markdown

sftp

git

# 下载安装
https://github.com/git-for-windows/git/releases/download/v2.27.0.windows.1/Git-2.27.0-64-bit.exe
# 安装设置
D:\Program Files (x86)\Git
# vscode的git图形管理很方便

settings.json

{
  "window.zoomLevel": 0,
  "files.autoSave": "off",
  "files.eol": "\n",
  "editor.columnSelection": false,
  "editor.fontSize": 20,
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll": true
  },
  "editor.renderWhitespace": "all",
  "editor.minimap.enabled": true,
  "breadcrumbs.enabled": true,
  "debug.allowBreakpointsEverywhere": true,
  "git.path": "D:\\Program Files (x86)\\Git\\cmd\\git.exe",
  "go.gopath": "D:\\gohome",
  "go.goroot": "D:\\Program Files (x86)\\go",
  "go.buildOnSave": "package",
  "go.lintOnSave": "package",
  "go.formatTool": "goimports",
  "go.useCodeSnippetsOnFunctionSuggest": true,
  "go.useLanguageServer": false,
  "go.useGoProxyToCheckForToolUpdates": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
  ],
  "python.linting.flake8Enabled": true,
  "python.formatting.provider": "yapf",
  "python.linting.flake8Args": [
    "--max-line-length=248"
  ],
  "python.linting.pylintEnabled": false,
}
上一篇 下一篇

猜你喜欢

热点阅读