Skip to content

Commit 8b13743

Browse files
author
Keisuke KATO
authored
Vscode/1.7.x (#21)
* change categories * update yes to ✅
1 parent 6a35422 commit 8b13743

File tree

4 files changed

+95
-93
lines changed

4 files changed

+95
-93
lines changed

README.md

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -11,73 +11,73 @@ Port of IntelliJ IDEA key bindings for VS Code.
1111

1212
Linux, Windows | macOS | Feature | Supported
1313
---------------|------|---------|----------
14-
ctrl+space | ctrl+space | Basic code completion (the name of any class, method or variable) | Yes
14+
ctrl+space | ctrl+space | Basic code completion (the name of any class, method or variable) |
1515
ctrl+shft+space | ctrl+shft+space | Smart code completion (filters the list of methods and variables by expected type) | N/A
16-
ctrl+shift+enter | cmd+shift+enter | Complete statement | Yes
17-
ctrl+p | cmd+p | Parameter info (within method call arguments) | Yes
16+
ctrl+shift+enter | cmd+shift+enter | Complete statement |
17+
ctrl+p | cmd+p | Parameter info (within method call arguments) |
1818
ctrl+q | ctrl+j | Quick documentation lookup | N/A
1919
ctrl+f1 | shift+f1 | External Doc | N/A
2020
ctrl+mouseover | cmd+mouseover | Brief Info | N/A
21-
ctrl+f1 | cmd+f1 | Show descriptions of error or warning at caret | Yes
21+
ctrl+f1 | cmd+f1 | Show descriptions of error or warning at caret |
2222
ctrl+insert | cmd+n | Generate code... (Getters, Setters, Constructors, hashCode/equals, toString) | N/A
2323
ctrl+o | ctrl+o | Override methods | N/A
2424
ctrl+i | ctrl+i | Implement methods | N/A
2525
ctrl+alt+t | cmd+alt+t | Surround with... (if..else, try..catch, for, synchronized, etc.) | N/A
26-
ctrl+/ | cmd+/ | Comment/uncomment with line comment | Yes
27-
ctrl+numpad_divide | cmd+numpad_divide | Comment/uncomment with line comment | Yes
28-
ctrl+alt+/ | cmd+alt+/ | Comment/uncomment with block comment | Yes
29-
ctrl+alt+numpad_divide | cmd+alt+numpad_divide | Comment/uncomment with block comment | Yes
30-
ctrl+w | alt+up | Select successively increasing code blocks | Yes
31-
ctrl+shift+w | alt+down | Decrease current selection to previous state | Yes
26+
ctrl+/ | cmd+/ | Comment/uncomment with line comment |
27+
ctrl+numpad_divide | cmd+numpad_divide | Comment/uncomment with line comment |
28+
ctrl+alt+/ | cmd+alt+/ | Comment/uncomment with block comment |
29+
ctrl+alt+numpad_divide | cmd+alt+numpad_divide | Comment/uncomment with block comment |
30+
ctrl+w | alt+up | Select successively increasing code blocks |
31+
ctrl+shift+w | alt+down | Decrease current selection to previous state |
3232
alt+q | ctrl+shift+q | Context info | N/A
33-
alt+enter | alt+enter | Show intention actions and quick-fixes | Yes
34-
ctrl+y | cmd+backspace | Delete line at caret | Yes
35-
ctrl+alt+l | cmd+alt+l | Reformat code | Yes
33+
alt+enter | alt+enter | Show intention actions and quick-fixes |
34+
ctrl+y | cmd+backspace | Delete line at caret |
35+
ctrl+alt+l | cmd+alt+l | Reformat code |
3636
ctrl+alt+o | ctrl+alt+o | Optimize imports | N/A
3737
ctrl+alt+i | ctrl+alt+i | Auto-indent line(s) | N/A
3838
tab | tab | Indent selected lines | N/A
3939
shift+tab | shift+tab | Unindent selected lines | N/A
40-
ctrl+x | cmd+x | Cut current line or selected block to clipboard | Yes
41-
ctrl+c | cmd+c | Copy current line or selected block to clipboard | Yes
42-
ctrl+v | cmd+v | Paste from clipboard | Yes
40+
ctrl+x | cmd+x | Cut current line or selected block to clipboard |
41+
ctrl+c | cmd+c | Copy current line or selected block to clipboard |
42+
ctrl+v | cmd+v | Paste from clipboard |
4343
ctrl+shift+v | cmd+shift+v | Paste from recent buffers... | N/A
44-
ctrl+d | cmd+d | Duplicate current line or selected block | Yes
45-
ctrl+backspace | cmd+backspace | Delete line at caret | Yes
44+
ctrl+d | cmd+d | Duplicate current line or selected block |
45+
ctrl+backspace | cmd+backspace | Delete line at caret |
4646
ctrl+shift+j | ctrl+shift+j | Smart line join | N/A
47-
ctrl+enter | cmd+enter | Smart line split | Yes
48-
shift+enter | shift+enter | Start new line | Yes
47+
ctrl+enter | cmd+enter | Smart line split |
48+
shift+enter | shift+enter | Start new line |
4949
ctrl+shift+u | cmd+shift+u | Toggle case for word at caret or selected block | N/A
5050
ctrl+shift+] | cmd+shift+] | Select till code block end | N/A
5151
ctrl+shift+[ | cmd+shift+[ | Select till code block start | N/A
52-
ctrl+delete | alt+delete | Delete to word end | Yes
53-
ctrl+backspace | alt+backspace | Delete to word start | Yes
54-
ctrl+= | cmd+= | Expand code block | Yes
55-
ctrl+- | cmd+- | Collapse code block | Yes
56-
ctrl+shift+= | cmd+shift+= | Expand all | Yes
57-
ctrl+shift+- | cmd+shift+- | Collapse all | Yes
58-
ctrl+f4 | cmd+w | Close active editor tab | Yes
59-
alt+j | ctrl+g | Add selection for Next Occurrence | Yes
60-
alt+shift+j | ctrl+shift+g | Unselect Occurrence | Yes
52+
ctrl+delete | alt+delete | Delete to word end |
53+
ctrl+backspace | alt+backspace | Delete to word start |
54+
ctrl+= | cmd+= | Expand code block |
55+
ctrl+- | cmd+- | Collapse code block |
56+
ctrl+shift+= | cmd+shift+= | Expand all |
57+
ctrl+shift+- | cmd+shift+- | Collapse all |
58+
ctrl+f4 | cmd+w | Close active editor tab |
59+
alt+j | ctrl+g | Add selection for Next Occurrence |
60+
alt+shift+j | ctrl+shift+g | Unselect Occurrence |
6161

6262
### Search/Replace
6363

6464
Linux, Windows | macOS | Feature | Supported
6565
---------------|------|---------|----------
6666
shfit shift | shfit shift | Search everywhere | N/A
67-
ctrl+f | cmd+f | Find | Yes
68-
f3 | cmd+g | Find next | Yes
69-
shift+f3 | cmd+shift+g | Find previous | Yes
70-
ctrl+r | cmd+r | Replace | Yes
71-
ctrl+shift+f | cmd+shift+f | Find in path | Yes
72-
ctrl+shift+r | cmd+shift+r | Replace in path | Yes
67+
ctrl+f | cmd+f | Find |
68+
f3 | cmd+g | Find next |
69+
shift+f3 | cmd+shift+g | Find previous |
70+
ctrl+r | cmd+r | Replace |
71+
ctrl+shift+f | cmd+shift+f | Find in path |
72+
ctrl+shift+r | cmd+shift+r | Replace in path |
7373
ctrl+shift+s | cmd+shift+s | Search structurally (Ultimate Edition only) | N/A
7474
ctrl+shift+m | cmd+shift+m | Replace structurally (Ultimate Edition only) | N/A
7575

7676
### Usage Search
7777

7878
Linux, Windows | macOS | Feature | Supported
7979
---------------|------|---------|----------
80-
alt+f7 | alt+f7 | Find usages | Yes
80+
alt+f7 | alt+f7 | Find usages |
8181
ctrl+f7 | cmd+f7 | Find usages in file | N/A
8282
ctrl+shift+f7 | cmd+shift+f7 | Highlight usages in file | N/A
8383
ctrl+alt+f7 | cmd+alt+f7 | Show usages | N/A
@@ -86,52 +86,52 @@ ctrl+alt+f7 | cmd+alt+f7 | Show usages | N/A
8686

8787
Linux, Windows | macOS | Feature | Supported
8888
---------------|------|---------|----------
89-
ctrl+f9 | cmd+f9 | Make project (compile modifed and dependent) | Yes
89+
ctrl+f9 | cmd+f9 | Make project (compile modifed and dependent) |
9090
ctrl+shift+f9 | cmd+shift+f9 | Compile selected file, package or module | N/A
91-
alt+shift+f10 | ctrl+alt+r | Select configuration and run | Yes
92-
alt+shift+f9 | ctrl+alt+d | Select configuration and debug | Yes
91+
alt+shift+f10 | ctrl+alt+r | Select configuration and run |
92+
alt+shift+f9 | ctrl+alt+d | Select configuration and debug |
9393
shift+f10 | ctrl+r | Run | N/A
94-
shift+f9 | ctrl+d | Debug | Yes
94+
shift+f9 | ctrl+d | Debug |
9595
ctrl+shift+f10 | ctrl+shift+r | Run context configuration from editor | N/A
9696

9797
### Debugging
9898

9999
Linux, Windows | macOS | Feature | Supported
100100
---------------|------|---------|----------
101-
f8 | f8 | Step over | Yes
102-
f7 | f7 | Step into | Yes
101+
f8 | f8 | Step over |
102+
f7 | f7 | Step into |
103103
shift+f7 | shift+f7 | Smart step into | N/A
104-
shift+f8 | shift+f8 | Step out | Yes
105-
alt+f9 | alt+f9 | Run to cursor | Yes
106-
alt+f8 | alt+f8 | Evaluate expression | Yes
107-
alt+f8 | alt+f8 | Evaluate expression (selection) | Yes
108-
f9 | cmd+alt+r | Resume program | Yes
109-
ctrl+f8 | cmd+f8 | Toggle breakpoint | Yes
110-
ctrl+shift+f8 | cmd+shift+f8 | View breakpoints | Yes
104+
shift+f8 | shift+f8 | Step out |
105+
alt+f9 | alt+f9 | Run to cursor |
106+
alt+f8 | alt+f8 | Evaluate expression |
107+
alt+f8 | alt+f8 | Evaluate expression (selection) |
108+
f9 | cmd+alt+r | Resume program |
109+
ctrl+f8 | cmd+f8 | Toggle breakpoint |
110+
ctrl+shift+f8 | cmd+shift+f8 | View breakpoints |
111111

112112
### Navigation
113113

114114
Linux, Windows | macOS | Feature | Supported
115115
---------------|------|---------|----------
116-
ctrl+n | cmd+o | Go to class | Yes
117-
ctrl+shift+n | cmd+shift+o | Go to file | Yes
118-
ctrl+alt+shift+n | cmd+alt+o | Go to symbol | Yes
119-
alt+left | ctrl+left | Go to previous editor tab | Yes
120-
alt+right | ctrl+right | Go to next editor tab | Yes
116+
ctrl+n | cmd+o | Go to class |
117+
ctrl+shift+n | cmd+shift+o | Go to file |
118+
ctrl+alt+shift+n | cmd+alt+o | Go to symbol |
119+
alt+left | ctrl+left | Go to previous editor tab |
120+
alt+right | ctrl+right | Go to next editor tab |
121121
f12 | f12 | Go back to previous tool window | N/A
122122
esc | esc | Go to editor (from tool window) | N/A
123123
shift+esc | shift+esc | Hide active or last active window | N/A
124124
ctrl+shift+f4 | cmd+shift+f4 | Close active run/messages/find/... tab | N/A
125-
ctrl+g | cmd+l | Go to line | Yes
126-
ctrl+e | cmd+e | Recent files popup | Yes
127-
ctrl+alt+left | cmd+alt+left | Navigate back | Yes
128-
ctrl+alt+right | cmd+alt+right | Navigate forward | Yes
125+
ctrl+g | cmd+l | Go to line |
126+
ctrl+e | cmd+e | Recent files popup |
127+
ctrl+alt+left | cmd+alt+left | Navigate back |
128+
ctrl+alt+right | cmd+alt+right | Navigate forward |
129129
ctrl+shift+backspace | cmd+shift+backspace | Navigate to last edit location | N/A
130130
alt+f1 | alt+f1 | Select current file or symbol in any view | N/A
131-
ctrl+b | cmd+b | Go to declaration | Yes
131+
ctrl+b | cmd+b | Go to declaration |
132132
ctrl+alt+b | cmd+alt+b | Go to implementation(s) | N/A
133-
ctrl+shift+i | alt+space | Open quick definition lookup | Yes
134-
ctrl+shift+b | ctrl+shift+b | Go to type declaration | Yes
133+
ctrl+shift+i | alt+space | Open quick definition lookup |
134+
ctrl+shift+b | ctrl+shift+b | Go to type declaration |
135135
ctrl+u | cmd+u | Go to super-method/super-class | N/A
136136
alt+up | ctrl+up | Go to previous method | N/A
137137
alt+down | ctrl+down | Go to next method | N/A
@@ -158,7 +158,7 @@ Linux, Windows | macOS | Feature | Supported
158158
f5 | f5 | Copy | N/A
159159
f6 | f6 | Move | N/A
160160
alt+delete | cmd+delete | Safe Delete | N/A
161-
shift+f6 | shift+f6 | Rename | Yes
161+
shift+f6 | shift+f6 | Rename |
162162
ctrl+f6 | cmd+f6 | Change Signature | N/A
163163
ctrl+alt+n | cmd+alt+n | Inline | N/A
164164
ctrl+alt+m | cmd+alt+m | Extract Method | N/A
@@ -171,10 +171,10 @@ ctrl+alt+p | cmd+alt+p | Extract Parameter | N/A
171171

172172
Linux, Windows | macOS | Feature | Supported
173173
---------------|------|---------|----------
174-
ctrl+k | cmd+k | Commit project to VCS | Yes
175-
ctrl+t | cmd+t | Update project from VCS | Yes
174+
ctrl+k | cmd+k | Commit project to VCS |
175+
ctrl+t | cmd+t | Update project from VCS |
176176
alt+shift+c | alt+shift+c | View recent changes | N/A
177-
ctrl+` | ctrl+v | ‘VCS’ quick popup | Yes
177+
ctrl+\` | ctrl+v | ‘VCS’ quick popup |
178178

179179
### Live Templates
180180

@@ -187,31 +187,31 @@ ctrl+j | cmd+j | Insert Live Template | N/A
187187

188188
Linux, Windows | macOS | Feature | Supported
189189
---------------|------|---------|----------
190-
alt+0 | cmd+0 | Activate Messages window (Problems) | Yes
191-
alt+1 | cmd+1 | Open corresponding tool window (Explorer) | Yes
192-
alt+5 | cmd+5 | Open corresponding tool window (Debug) | Yes
193-
alt+9 | cmd+9 | Open corresponding tool window (Git) | Yes
194-
ctrl+s | cmd+s | Save all | Yes
195-
ctrl+alt+y | cmd+alt+y | Synchronize | Yes
196-
ctrl+alt+f | ctrl+cmd+f | Toggle full screen mode | Yes
197-
ctrl+shift+f12 | cmd+shift+f12 | Toggle maximizing editor | Yes
190+
alt+0 | cmd+0 | Activate Messages window (Problems) |
191+
alt+1 | cmd+1 | Open corresponding tool window (Explorer) |
192+
alt+5 | cmd+5 | Open corresponding tool window (Debug) |
193+
alt+9 | cmd+9 | Open corresponding tool window (Git) |
194+
ctrl+s | cmd+s | Save all |
195+
ctrl+alt+y | cmd+alt+y | Synchronize |
196+
ctrl+alt+f | ctrl+cmd+f | Toggle full screen mode |
197+
ctrl+shift+f12 | cmd+shift+f12 | Toggle maximizing editor |
198198
alt+shift+f | alt+shift+f | Add to Favorites | N/A
199199
alt+shift+i | alt+shift+i | Inspect current file with current profile | N/A
200-
ctrl+\` | ctrl+\` | Quick switch current scheme | Yes
201-
ctrl+alt+s | cmd+, | Open Settings dialog | Yes
202-
ctrl+alt+s | cmd+numpad_separator | Open Settings dialog | Yes
203-
ctrl+alt+shift+s | cmd+; | Open Project Structure dialog | Yes
204-
ctrl+shift+a | shift+cmd+a | Find Action | Yes
205-
ctrl+tab | ctrl+tab | Switch between tabs and tool window | Yes
200+
ctrl+\` | ctrl+\` | Quick switch current scheme |
201+
ctrl+alt+s | cmd+, | Open Settings dialog |
202+
ctrl+alt+s | cmd+numpad_separator | Open Settings dialog |
203+
ctrl+alt+shift+s | cmd+; | Open Project Structure dialog |
204+
ctrl+shift+a | shift+cmd+a | Find Action |
205+
ctrl+tab | ctrl+tab | Switch between tabs and tool window |
206206

207207
### Custom
208208

209209
Linux, Windows | macOS | Feature | Supported
210210
---------------|------|---------|----------
211-
f7 | f7 | Next difference | Yes
212-
shift+f7 | shift+f7 | Previous difference | Yes
213-
alt+ctrl+enter | alt+cmd+enter | Start new line before current | Yes
214-
shift+ctrl+enter | shift+cmd+enter | Start new line | Yes
211+
f7 | f7 | Next difference |
212+
shift+f7 | shift+f7 | Previous difference |
213+
alt+ctrl+enter | alt+cmd+enter | Start new line before current |
214+
shift+ctrl+enter | shift+cmd+enter | Start new line |
215215

216216

217217
## Installation

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "intellij-idea-keybindings",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"publisher": "k--kato",
55
"engines": {
6-
"vscode": "1.6.x"
6+
"vscode": "1.7.x"
77
},
88
"displayName": "IntelliJ IDEA Keybindings",
99
"description": "Port of IntelliJ IDEA Keybindings",
1010
"categories": [
11-
"Other"
11+
"Keymaps"
1212
],
1313
"galleryBanner": {
1414
"color": "#4F87FF",

src/package-with-comment.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "intellij-idea-keybindings",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"publisher": "k--kato",
55
"engines": {
6-
"vscode": "1.6.x"
6+
"vscode": "1.7.x"
77
},
88
"displayName": "IntelliJ IDEA Keybindings",
99
"description": "Port of IntelliJ IDEA Keybindings",
1010
"categories": [
11-
"Other"
11+
"Keymaps"
1212
],
1313
"galleryBanner": {
1414
"color": "#4F87FF",

src/tool/gene-keybind-markdown.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*---------------------------------------------------------------------------*\
2-
* node gene-keybind-markdown.js
2+
* node src/tool/gene-keybind-markdown.js
33
\*---------------------------------------------------------------------------*/
44

55
const fs = require('fs'),
66
readline = require('readline');
77

88
const rd = readline.createInterface({
9-
input: fs.createReadStream('../package-with-comment.json'),
9+
input: fs.createReadStream('src/package-with-comment.json'),
1010
output: process.stdout,
1111
terminal: false
1212
});
@@ -42,9 +42,9 @@ rd.on('line', function(line) {
4242
else if (isIntelliJ(line)) {
4343
intellij = getIntelliJ(line);
4444

45-
var format = key + ' | ' + mac + ' | ' + intellij + ' | ';
45+
var format = escape(key) + ' | ' + escape(mac) + ' | ' + intellij + ' | ';
4646
if (hasCommand(command)) {
47-
console.log(format + 'Yes');
47+
console.log(format + '');
4848
} else {
4949
console.log(format + 'N/A');
5050
}
@@ -68,6 +68,8 @@ const getIntelliJ = (line) => /"intellij": "(.*)"/.exec(line)[1];
6868
const getCommand = (line) => /"command": "(.*)"/.exec(line)[1];
6969
const getTodo = (line) => /"todo": "(.*)"/.exec(line)[1];
7070

71+
const escape = (line) => line.replace(/([`])/, "\\$1");
72+
7173

7274
const TABLE_HEADER =
7375
`Linux, Windows | macOS | Feature | Supported

0 commit comments

Comments
 (0)