问题记录 | VScode中使用IntelliJ的快捷键
问题记录 | VScode中使用IntelliJ的快捷键
主要想用ctrl+alt+l格式化Python代码
安装VScode的插件:IntelliJ IDEA Keybindings
安装方法:
Installation
- Install Visual Studio Code 1.30.2 or higher
- Launch Code
- From the extension view
Ctrl-Shift-X(Windows, Linux) orCmd-Shift-X(macOS) - Search and Choose the extension
Intellij IDEA Keybindings - Reload Visual Studio Code
就可以使用一下快捷键:
Usage
Editing
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| ctrl+space | ctrl+space | Basic code completion (the name of any class, method or variable) | ✅ |
| ctrl+shift+space | ctrl+shift+space | Smart code completion (filters the list of methods and variables by expected type) | N/A |
| ctrl+shift+enter | cmd+shift+enter | Complete statement | ✅ |
| ctrl+p | cmd+p | Parameter info (within method call arguments) | ✅ |
| ctrl+q | ctrl+j | Quick documentation lookup | ✅ |
| ctrl+f1 | shift+f1 | External Doc | N/A |
| ctrl+mouseover | cmd+mouseover | Brief Info | N/A |
| ctrl+f1 | cmd+f1 | Show descriptions of error or warning at caret | ✅ |
| alt+insert | cmd+n | Generate code... (Getters, Setters, Constructors, hashCode/equals, toString) | ✅ |
| ctrl+o | ctrl+o | Override methods | N/A |
| ctrl+i | ctrl+i | Implement methods | N/A |
| ctrl+alt+t | cmd+alt+t | Surround with... (if..else, try..catch, for, synchronized, etc.) | N/A |
| ctrl+/ | cmd+/ | Comment/uncomment with line comment | ✅ |
| ctrl+numpad_divide | cmd+numpad_divide | Comment/uncomment with line comment | ✅ |
| ctrl+alt+/ | cmd+alt+/ | Comment/uncomment with block comment | ✅ |
| ctrl+alt+numpad_divide | cmd+alt+numpad_divide | Comment/uncomment with block comment | ✅ |
| ctrl+w | alt+up | Select successively increasing code blocks | ✅ |
| ctrl+shift+w | alt+down | Decrease current selection to previous state | ✅ |
| alt+q | ctrl+shift+q | Context info | N/A |
| alt+enter | alt+enter | Show intention actions and quick-fixes | ✅ |
| ctrl+alt+l | cmd+alt+l | Reformat code | ✅ |
| ctrl+alt+l | cmd+alt+l | Reformat selected code | ✅ |
| ctrl+alt+o | ctrl+alt+o | Optimize imports | N/A |
| ctrl+alt+i | ctrl+alt+i | Auto-indent line(s) | N/A |
| tab | tab | Indent selected lines | N/A |
| shift+tab | shift+tab | Unindent selected lines | N/A |
| ctrl+x | cmd+x | Cut current line or selected block to clipboard | ✅ |
| shift+delete | cmd+delete | Cut current line or selected block to clipboard | ✅ |
| ctrl+c | cmd+c | Copy current line or selected block to clipboard | ✅ |
| ctrl+v | cmd+v | Paste from clipboard | ✅ |
| ctrl+shift+v | cmd+shift+v | Paste from recent buffers... | N/A |
| ctrl+d | cmd+d | Duplicate current line or selected block | ✅ |
| ctrl+y | cmd+backspace | Delete line at caret | ✅ |
| ctrl+shift+j | ctrl+shift+j | Smart line join | ✅ |
| ctrl+enter | cmd+enter | Smart line split | ✅ |
| shift+enter | shift+enter | Start new line | ✅ |
| ctrl+shift+u | cmd+shift+u | Toggle case for word at caret or selected block | N/A |
| ctrl+shift+] | cmd+shift+] | Select till code block end | N/A |
| ctrl+shift+[ | cmd+shift+[ | Select till code block start | N/A |
| ctrl+delete | alt+delete | Delete to word end | ✅ |
| ctrl+backspace | alt+backspace | Delete to word start | ✅ |
| ctrl+= | cmd+= | Expand code block | ✅ |
| ctrl+numpad_add | cmd+numpad_add | Expand code block | ✅ |
| ctrl+- | cmd+- | Collapse code block | ✅ |
| ctrl+numpad_subtract | cmd+numpad_subtract | Collapse code block | ✅ |
| ctrl+shift+= | cmd+shift+= | Expand all | ✅ |
| ctrl+shift+numpad_add | cmd+shift+numpad_add | Expand all | ✅ |
| ctrl+shift+- | cmd+shift+- | Collapse all | ✅ |
| ctrl+shift+numpad_subtract | cmd+shift+numpad_subtract | Collapse all | ✅ |
| ctrl+f4 | cmd+w | Close active editor tab | ✅ |
| alt+j | ctrl+g | Add selection for Next Occurrence | ✅ |
| alt+shift+j | ctrl+shift+g | Unselect Occurrence | ✅ |
| shift+alt+down | shift+alt+down | Move Line Down | ✅ |
| shift+alt+up | shift+alt+up | Move Line Up | ✅ |
Search/Replace
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| shift shift | shift shift | Search everywhere | N/A |
| ctrl+f | cmd+f | Find | ✅ |
| f3 | cmd+g | Find next | ✅ |
| shift+f3 | cmd+shift+g | Find previous | ✅ |
| ctrl+r | cmd+r | Replace | ✅ |
| ctrl+shift+f | cmd+shift+f | Find in path | ✅ |
| ctrl+shift+r | cmd+shift+r | Replace in path | ✅ |
| ctrl+shift+s | cmd+shift+s | Search structurally (Ultimate Edition only) | N/A |
| ctrl+shift+m | cmd+shift+m | Replace structurally (Ultimate Edition only) | N/A |
Usage Search
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| alt+f7 | alt+f7 | Find usages | ✅ |
| alt+ctrl+f7 | alt+cmd+f7 | Show usages | ✅ |
| ctrl+f7 | cmd+f7 | Find usages in file | N/A |
| ctrl+shift+f7 | cmd+shift+f7 | Highlight usages in file | N/A |
| ctrl+alt+f7 | cmd+alt+f7 | Show usages | N/A |
Compile and Run
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| ctrl+f9 | cmd+f9 | Make project (compile modifed and dependent) | ✅ |
| ctrl+shift+f9 | cmd+shift+f9 | Compile selected file, package or module | N/A |
| alt+shift+f10 | ctrl+alt+r | Select configuration and run | ✅ |
| alt+shift+f9 | ctrl+alt+d | Select configuration and debug | ✅ |
| shift+f10 | ctrl+r | Run | N/A |
| shift+f9 | ctrl+d | Debug | ✅ |
| ctrl+shift+f10 | ctrl+shift+r | Run context configuration from editor | N/A |
| ctrl+shift+f10 | ctrl+shift+r | Debug context configuration from editor | N/A |
Debugging
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| f8 | f8 | Step over | ✅ |
| f7 | f7 | Step into | ✅ |
| shift+f7 | shift+f7 | Smart step into | N/A |
| shift+f8 | shift+f8 | Step out | ✅ |
| alt+f9 | alt+f9 | Run to cursor | ✅ |
| alt+f8 | alt+f8 | Evaluate expression | ✅ |
| alt+f8 | alt+f8 | Evaluate expression (selection) | ✅ |
| f9 | cmd+alt+r | Resume program | ✅ |
| ctrl+f8 | cmd+f8 | Toggle breakpoint | ✅ |
| ctrl+shift+f8 | cmd+shift+f8 | View breakpoints | ✅ |
Navigation
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| ctrl+n | cmd+o | Go to class | ✅ |
| ctrl+shift+n | cmd+shift+o | Go to file | ✅ |
| ctrl+alt+shift+n | cmd+alt+o | Go to symbol | ✅ |
| alt+left | ctrl+left | Go to previous editor tab | ✅ |
| shift+cmd+[ | Go to previous editor tab | ✅ | |
| alt+right | ctrl+right | Go to next editor tab | ✅ |
| shift+cmd+] | Go to next editor tab | ✅ | |
| f12 | f12 | Go back to previous tool window | N/A |
| escape | escape | Go to editor (from tool window) | N/A |
| shift+escape | shift+escape | Hide active or last active window (Sidebar) | ✅ |
| shift+escape | shift+escape | Hide active or last active window (Output) | ✅ |
| shift+escape | shift+escape | Hide active or last active window (Problems) | ✅ |
| shift+escape | shift+escape | Hide active or last active window (Debug Console) | ✅ |
| shift+escape | shift+escape | Hide active or last active window (Terminal) | ✅ |
| shift+escape | shift+escape | Hide active or last active window (Panel) | N/A |
| ctrl+shift+f4 | cmd+shift+f4 | Close active run/messages/find/... tab | N/A |
| ctrl+g | cmd+l | Go to line | ✅ |
| ctrl+e | cmd+e | Recent files popup | ✅ |
| ctrl+alt+left | cmd+alt+left | Navigate back | ✅ |
| cmd+[ | Navigate back | ✅ | |
| ctrl+alt+right | cmd+alt+right | Navigate forward | ✅ |
| cmd+] | Navigate forward | ✅ | |
| ctrl+shift+backspace | cmd+shift+backspace | Navigate to last edit location | ✅ |
| alt+f1 | alt+f1 | Select current file or symbol in any view | N/A |
| ctrl+b | cmd+b | Go to declaration | ✅ |
| ctrl+alt+b | cmd+alt+b | Go to implementation(s) | ✅ |
| ctrl+shift+i | alt+space | Open quick definition lookup | ✅ |
| cmd+y | Open quick definition lookup | ✅ | |
| ctrl+shift+b | ctrl+shift+b | Go to type declaration | ✅ |
| ctrl+u | cmd+u | Go to super-method/super-class | N/A |
| alt+up | ctrl+up | Go to previous method | N/A |
| alt+down | ctrl+down | Go to next method | N/A |
| ctrl+] | cmd+] | Move to code block end | N/A |
| ctrl+[ | cmd+[ | Move to code block start | N/A |
| ctrl+f12 | cmd+f12 | File structure popup | ✅ |
| ctrl+h | ctrl+h | Type hierarchy | N/A |
| ctrl+shift+h | cmd+shift+h | Method hierarchy | N/A |
| ctrl+alt+h | ctrl+alt+h | Call hierarchy | N/A |
| f2 | f2 | Next highlighted error | ✅ |
| shift+f2 | shift+f2 | Previous highlighted error | ✅ |
| f4 | f4 | Edit source | ✅ |
| ctrl+enter | cmd+down | View source | ✅ |
| shift+ctrl+down | shift+alt+down | Move Statement Down | ✅ |
| shift+ctrl+up | shift+alt+up | Move Statement Up | ✅ |
| alt+home | alt+home | Show navigation bar | N/A |
| f11 | f3 | Toggle bookmark | N/A |
| ctrl+f11 | alt+f3 | Toggle bookmark with mnemonic | N/A |
| ctrl+0 | ctrl+0 | Go to numbered bookmark | N/A |
| shift+f11 | cmd+f3 | Show bookmarks | N/A |
| ctrl+alt+shift+down | ctrl+alt+shift+down | Next Change | ✅ |
| ctrl+alt+shift+up | ctrl+alt+shift+up | Previous Change | ✅ |
Refactoring
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| f5 | f5 | Copy | N/A |
| f6 | f6 | Move | N/A |
| alt+delete | cmd+delete | Safe Delete | N/A |
| shift+f6 | shift+f6 | Rename | ✅ |
| shift+f6 | shift+f6 | Rename (File) | ✅ |
| ctrl+f6 | cmd+f6 | Change Signature | N/A |
| ctrl+alt+n | cmd+alt+n | Inline | N/A |
| ctrl+alt+m | cmd+alt+m | Extract Method | ✅ |
| ctrl+alt+v | cmd+alt+v | Extract Variable | ✅ |
| ctrl+alt+f | cmd+alt+f | Extract Field | N/A |
| ctrl+alt+c | cmd+alt+c | Extract Constant | N/A |
| ctrl+alt+p | cmd+alt+p | Extract Parameter | N/A |
VCS/Local History
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| ctrl+k | cmd+k | Commit project to VCS | ✅ |
| ctrl+shift+k | cmd+shift+k | Push commits to VCS | ✅ |
| ctrl+t | cmd+t | Update project from VCS | ✅ |
| alt+shift+c | alt+shift+c | View recent changes | N/A |
| ctrl+` | ctrl+v | ‘VCS’ quick popup | ✅ |
Live Templates
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| ctrl+alt+j | cmd+alt+j | Surround with Live Template | N/A |
| ctrl+j | cmd+j | Insert Live Template | N/A |
General
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| alt+0 | cmd+0 | Activate Messages window (Problems) | ✅ |
| alt+numpad0 | cmd+numpad0 | Activate Messages window (Problems) | ✅ |
| alt+1 | cmd+1 | Open corresponding tool window (Explorer) | ✅ |
| alt+numpad1 | cmd+numpad1 | Open corresponding tool window (Explorer) | ✅ |
| alt+1 | cmd+1 | Close corresponding tool window (Explorer) | ✅ |
| alt+numpad1 | cmd+numpad1 | Close corresponding tool window (Explorer) | ✅ |
| alt+3 | cmd+3 | Open corresponding tool window (Search) | ✅ |
| alt+numpad3 | cmd+numpad3 | Open corresponding tool window (Search) | ✅ |
| alt+3 | cmd+3 | Close corresponding tool window (Search) | ✅ |
| alt+numpad3 | cmd+numpad3 | Close corresponding tool window (Search) | ✅ |
| alt+5 | cmd+5 | Open corresponding tool window (Debug) | ✅ |
| alt+numpad5 | cmd+numpad5 | Open corresponding tool window (Debug) | ✅ |
| alt+5 | cmd+5 | Close corresponding tool window (Debug) | ✅ |
| alt+numpad5 | cmd+numpad5 | Close corresponding tool window (Debug) | ✅ |
| alt+9 | cmd+9 | Open corresponding tool window (Git) | ✅ |
| alt+numpad9 | cmd+numpad9 | Open corresponding tool window (Git) | ✅ |
| alt+9 | cmd+9 | Close corresponding tool window (Git) | ✅ |
| alt+numpad9 | cmd+numpad9 | Close corresponding tool window (Git) | ✅ |
| ctrl+s | cmd+s | Save all | ✅ |
| ctrl+alt+y | cmd+alt+y | Synchronize | ✅ |
| ctrl+alt+f | ctrl+cmd+f | Toggle full screen mode | ✅ |
| ctrl+shift+f12 | cmd+shift+f12 | Toggle maximizing editor | ✅ |
| alt+shift+f | alt+shift+f | Add to Favorites | N/A |
| alt+shift+i | alt+shift+i | Inspect current file with current profile | N/A |
| ctrl+` | ctrl+` | Quick switch current scheme | ✅ |
| ctrl+alt+s | cmd+, | Open Settings dialog | ✅ |
| ctrl+alt+s | cmd+numpad_separator | Open Settings dialog | ✅ |
| ctrl+alt+shift+s | cmd+; | Open Project Structure dialog | ✅ |
| ctrl+shift+a | shift+cmd+a | Find Action | ✅ |
| ctrl+tab | ctrl+tab | Switch between tabs and tool window | ✅ |
Custom
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| f7 | f7 | Next difference | ✅ |
| shift+f7 | shift+f7 | Previous difference | ✅ |
| alt+ctrl+enter | alt+cmd+enter | Start new line before current | ✅ |
| shift+ctrl+enter | shift+cmd+enter | Start new line | ✅ |
| alt+f12 | alt+f12 | Opens and focuses corresponding tool window (Terminal) | ✅ |
| alt+f12 | alt+f12 | Close corresponding tool window (Terminal) | ✅ |
| ctrl+shift+alt+j | ctrl+cmd+g | Sublime Text style multiple selections | ✅ |
| alt+left | shift+cmd+[ | Select previous tab (Terminal) | ✅ |
| alt+right | shift+cmd+] | Select next tab (Terminal) | ✅ |
| alt+tab | alt+tab | Goto next splitter | ✅ |
| shift+alt+tab | shift+alt+tab | Goto previous splitter | ✅ |
| enter | enter | Open Highlighted File (Explorer) | ✅ |
| alt+home | alt+home | Jump to Navigation Bar | ✅ |
Custom
| Linux, Windows | macOS | Feature | Supported |
|---|---|---|---|
| f7 | f7 | Next difference | ✅ |
| shift+f7 | shift+f7 | Previous difference | ✅ |
| alt+ctrl+enter | alt+cmd+enter | Start new line before current | ✅ |
| shift+ctrl+enter | shift+cmd+enter | Start new line | ✅ |
| alt+f12 | alt+f12 | Opens and focuses corresponding tool window (Terminal) | ✅ |
| alt+f12 | alt+f12 | Close corresponding tool window (Terminal) | ✅ |
| ctrl+shift+alt+j | ctrl+cmd+g | Sublime Text style multiple selections | ✅ |
| alt+left | shift+cmd+[ | Select previous tab (Terminal) | ✅ |
| alt+right | shift+cmd+] | Select next tab (Terminal) | ✅ |
| alt+tab | alt+tab | Goto next splitter | ✅ |
| shift+alt+tab | shift+alt+tab | Goto previous splitter | ✅ |
| enter | enter | Open Highlighted File (Explorer) | ✅ |
| alt+home | alt+home | Jump to Navigation Bar | ✅ |
| shift+ctrl+c | shift+cmd+c | Copy paths | ✅ |
问题记录 | VScode中使用IntelliJ的快捷键的更多相关文章
- STC8H开发(二): 在Linux VSCode中配置和使用FwLib_STC8封装库(图文详解)
目录 STC8H开发(一): 在Keil5中配置和使用FwLib_STC8封装库(图文详解) STC8H开发(二): 在Linux VSCode中配置和使用FwLib_STC8封装库(图文详解) 前面 ...
- 【Java】IntelliJ IDEA 快捷键
IntelliJ IDEA 快捷键 1. Editing(编辑) 快捷键 介绍 Ctrl +Space 基本代码补全,输入字母按后列出匹配的词组 Ctrl+Shift+Space 智能代码补全,列出与 ...
- Intellij IDEA 快捷键整理
CSDN 2016博客之星评选结果公布 [系列直播]算法与游戏实战技术 "我的2016"主题征文活动 Intellij IDEA 快捷键整理(TonyCody) ...
- IntelliJ IDEA 快捷键大全
IntelliJ IDEA 快捷键大全 (2012-03-27 20:33:44) 转载▼ 标签: ide intellij快捷键 杂谈 分类: IDE工具 最近刚接触IntelliJ这个工具,用了几 ...
- 十大Intellij IDEA快捷键
转载:http://blog.csdn.net/dc_726/article/details/42784275 Intellij IDEA中有很多快捷键让人爱不释手,stackoverflow上也有一 ...
- 十大Intellij IDEA快捷键(转)(2015年06月15日)
注:本文转自:http://blog.csdn.net/dc_726/article/details/42784275 Intellij IDEA中有很多快捷键让人爱不释手,stackoverflow ...
- vscode: Visual Studio Code 常用快捷键
vscode: Visual Studio Code 常用快捷键 主命令框 F1 或 Ctrl+Shift+P: 打开命令面板.在打开的输入框内,可以输入任何命令,例如: 按一下 Backspace ...
- Xcode的中常用到的快捷键,印象笔记中常用到的快捷键
Xcode提供了很多快捷键,灵活使用快捷键可以提升开发效率.但对于初学者来说,一次性的去记住并掌握如此多的快捷键显然是不现实的,本文就是来帮助大家了解在iOS开发过程中,使用最频繁的一些快捷键. 1. ...
- vscode中使用markdown
vscode中使用markdown vscode 是微软推出一款轻量级的文本编辑工具,类似于sublime,由于其拥有丰富的插件,安装使用也非常简单,所以深受广大程序员的喜爱. markdown 是一 ...
随机推荐
- Object-C 类和对象
//创建对象 //类名 *对象名 = [[类名 alloc] init] /* Car *car = [[Car alloc] init]; //Car ...
- python socket.error: [Errno 10061]
用Python写server和client时候如果server中sock.bind(('localhost', 8001)) 则client中sock.connect(('localhost', 8 ...
- 移动 APP 网络优化概述
一般开发一个 APP,会直接调用系统提供的网络请求接口去服务端请求数据,再针对返回的数据进行一些处理,或者使用AFNetworking/OKHttp这样的网络库,管理好请求线程和队列,再自动做一些数据 ...
- Hbase和Hive的异同
共同点:1.hbase与hive都是架构在hadoop之上的.都是用hadoop作为底层存储 区别:2.Hive是建立在Hadoop之上为了减少MapReduce jobs编写工作的批处理系统,HBa ...
- 从SEQUENCE跳号说起
http://blog.csdn.net/agaric717/article/details/6690890 一个应用上线后发现一个使用SEQUENCE值来生成的主键经常出现断号,而且断号不是一两个, ...
- Android ADB命令基本常用操作
电脑配置好环境变量之后呢,在cmd里面自测一下,是否配置OK: 1.查看目前连接的设备: adb devices 2.使目前连接的设备重启: adb reboot 3.有时候由于设备冲突导致adb出现 ...
- day 76 滑动窗口 ,头像上传
一.上传文件 前端html <!DOCTYPE html> <html lang="en"> <head> <meta charset=& ...
- linux系统下安装Jenkins
1.首先准备java环境,安装JDK 2.部署jenkins wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redha ...
- 世界线(bzoj2894)(广义后缀自动机)
由于春希对于第二世代操作的不熟练,所以刚使用完\(invasion process\)便掉落到了世界线之外,错综复杂的平行世界信息涌入到春希的意识中.春希明白了事件的真相. 在一个冬马与雪菜同时存在的 ...
- jzoj3363
JYY 来到了一个新的城市,为了和大家保持联系,第一件事就是办理新的手机号.JYY 对号码的要求很高,希望大家都能够顺畅地阅读手机号,因此 JYY 特别研究了地球人的电话号码阅读习惯,有如下重大发现 ...