常用工具快捷键及插件合集

IDE

快捷键 IDEA vs VSCode

IDEA 和 VSCode 快捷键对比表
Command 功能 IDEA VSCode
Project view 打开左侧栏,查看目录结构 Alt + 1(数字1) Ctrl + B
Show intention actions and quick-fixes 显示修复提示并快速修复 Alt + Enter --
Find usages/Find usages in file 找到/在文件中找到被使用处 Alt + F7 / Ctrl + F7 --
Open terminal panel 打开终端命令面板 Alt + F12 Ctrl + J
Generate code... (Getters, Setters, Constructors, hashCode/equals, toString) 生成代码(比如:Getter、Setter、Constructors、hashCode/equals、toString等方法) Alt + Insert --
Editing multi-line at same time 在多个地方同时编辑 Alt + Shift + Left Click Alt + Left Click
Go to implementation(s) 打开方法实现处 Ctrl + Alt + B 或 Ctrl + Left Click --
Go back 上一次编辑处 Ctrl + Shift + Backspace 上一次编辑:Ctrl + Alt + -(减号);下一次编辑:Ctrl + Shift + -(减号)
Reformat code 格式化代码 Ctrl + Shift + I(字母I) Ctrl + Alt + L
Optimize imports 整理导入的包 Ctrl + Alt + O --
Extract Variable 抽取变量 Ctrl + Alt + V --
Copy current line or selected block to clipboard 复制一行或选中区域 Ctrl + C Ctrl + C
Duplicate current line or selected block 往下复制一行或选中区域 Ctrl + D Ctrl + Shift + Alt + Down
Recent Files 显示最近打开文件 Ctrl + E Ctrl + E
Close window 关闭当前页面 Ctrl + F4 Ctrl + W
Change Signature 快速修改方法 Ctrl + F6 --
File structure popup 显示当前类的结构 Ctrl + F12 --
Go to class 打开指定名称的类 Ctrl + N --
Parameter info (within method call arguments) 显示调用方法的参数信息 Ctrl + P --
Select successively increasing code blocks 正确扩大选择范围 Ctrl + W --
Cut current line or selected block to clipboard 剪切一行或选中区域 Ctrl + X
Delete line at caret 删除光标所在行 Ctrl + Y Ctrl + Shift + K
Go to file 打开指定名字的文件 Ctrl + Shift + N --
Toggle maximizing editor 切换最大化编辑窗口 Ctrl + Shift + F12 --
Toggle case for word at caret or selected block 切换单词为大/小写 Ctrl + Shift + U Ctrl + Alt + U(切换为大写,自定义快捷键); Ctrl + Alt + L(切换为小写,自定义快捷键); Ctrl + Alt + Shift + T(切换为首字母大写,自定义快捷键)
Move line up/Dwon at caret 将光标所在行向上/下移动 当前行为一个区域的开始/结束,则移动整个区域:Ctrl + Shift + Up/Down 仅移动当前行:Alt + Shift + Up/Down Alt + Up/Down
Comment/uncomment with block comment 块注释/取消块注释 Ctrl + Shift + / Ctrl + Shift + A
Comment/uncomment with line comment 行注释/取消行注释 Ctrl + / Ctrl + /
Search everywhere 全局搜索 Double shift Ctrl + Shift + F
Redo 恢复上一步 Ctrl + Shift + Z Ctrl + Shift + Z
Start new line 开始新的一行 Shift + Enter --
Rename 重命名 Shift + F6 F2

IDEA 插件

  1. .ignore
    .ignore is a plugin for .gitignore (Git), .hgignore (Mercurial), .npmignore (NPM), .dockerignore (Docker), .chefignore (Chef), .cvsignore (CVS), .bzrignore (Bazaar), .boringignore (Darcs), .mtn-ignore (Monotone), ignore-glob (Fossil), .jshintignore (JSHint), .tfignore (Team Foundation), .p4ignore (Perforce), .prettierignore (Prettier), .flooignore (Floobits), .eslintignore (ESLint), .cfignore (Cloud Foundry), .jpmignore (Jetpack), .stylelintignore (StyleLint), .stylintignore (Stylint), .swagger-codegen-ignore (Swagger Codegen), .helmignore (Kubernetes Helm), .upignore (Up), .prettierignore (Prettier), .ebignore (ElasticBeanstalk), .gcloudignore (Google Cloud) files in your project.
  1. Lombok
    A plugin that adds first-class support for Project Lombok

VSCode 插件

  1. GitLens — Git supercharged
    GitLens supercharges the Git capabilities built into Visual Studio Code. It helps you to visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more.

  2. Markdown Preview Enhanced
    Markdown Preview Enhanced is an extension that provides you with many useful functionalities such as automatic scroll sync, math typesetting, mermaid, PlantUML, pandoc, PDF export, code chunk, presentation writer, etc. A lot of its ideas are inspired by Markdown Preview Plus and RStudio Markdown.

  3. Swig(.tpl)
    Simple syntax coloring and nice code snippets of Swig. Now support .tpl extension name.

  4. Todo Tree
    This extension quickly searches (using ripgrep) your workspace for comment tags like TODO and FIXME, and displays them in a tree view in the explorer pane. Clicking a TODO within the tree will open the file and put the cursor on the line containing the TODO.

  5. vscode-icons

  6. gitignore
    A extension for Visual Studio Code that assists you in working with .gitignore files.

  7. 翻译(translate to chinese)
    翻译插件,使用百度翻译API把其他语言翻译成中文,快捷键是 ctrl+shift+tcmd+shift+t

  8. Vim
    VSCodeVim is a Vim emulator for Visual Studio Code.

  9. IntelliJ IDEA Keybindings
    Port of IntelliJ IDEA Keybindings, including for WebStorm, PyCharm, PHP Storm, etc.
    在vscode中使用idea相同快捷键的插件

浏览器

chrome

快捷键 描述
Alt+Home 打开首页
Alt+Left Arrow 回退页面
Alt+Right Arrow 前进页面
F11 全屏显示
Esc 停止加载页面
Ctrl+(- or +) 缩小 or 放大页面
Ctrl+1-8 切换到当前的第1~8个标签
Ctrl+9 切换到最后一个标签
Ctrl+0 重置页面显示100%
Ctrl+Enter 自动补全网址,比如输入 word,按下快捷键后将进入 word.com
Ctrl+Shift+Del 打开快速清理浏览器数据窗口
Ctrl+Shift+B 显示或隐藏收藏栏
Ctrl+A 全选页面内容
Ctrl+D 将当前页面添加到收藏夹
Ctrl+F 打开页面上的搜索框
Ctrl+O 在浏览器上打开文件
Ctrl+Shift+O 打开收藏栏管理器
Ctrl+H 在新标签栏打开历史记录
Ctrl+J 显示下载记录
Ctrl+K or Ctrl+E 在地址栏使用默认搜索引擎搜索
Ctrl+L 将光标切到地址栏
Ctrl+N 打开一个新的窗口
Ctrl+Shift+N 打开一个新的隐私窗口
Ctrl+P 打印当前页
Ctrl+R or F5 更新当前页
Ctrl+S 保存当前页
Ctrl+T 打开一个新的标签页
Ctrl+U 查看页面源代码
Ctrl+W 关闭当前标签页
Ctrl+Shift+W 关闭当前窗口
Ctrl+Shift+T 恢复上一个关闭的标签页,如需恢复多个,可重复按
Ctrl+Tab 循环切换到右边的标签页
Ctrl+Shift+Tab 循环切换到左边的标签页
Ctrl+Left-click 在新标签页打开链接内容,保持在原标签页
Ctrl+Shift Left-click 在新标签页打开链接内容,并切换到新标签页
Ctrl+Page Down 循环切换到右边的标签页
Ctrl+Page Up 循环切换到左边的标签页
Spacebar 向下移动页面
Shift+Spacebar 向上移动页面
Home 去页面首部
End 去页面底部
Alt+Down Arrow 在文本框或下拉中显示之前文本内容
码哥 wechat
欢迎关注个人订阅号:「码上行动GO」