Skip to content

Commit

Permalink
fixed #23 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keisuke KATO authored Nov 7, 2016
1 parent ab2f3f5 commit acb0827
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 73 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ alt+q | ctrl+shift+q | Context info | N/A
alt+enter | alt+enter | Show intention actions and quick-fixes | ✅
ctrl+y | cmd+backspace | Delete line at caret | ✅
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
Expand Down Expand Up @@ -143,8 +144,8 @@ 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 | N/A
shift+f2 | shift+f2 | Previous highlighted error | N/A
f4 | f4 | Edit source | N/A
ctrl+enter | cmd+down | View source | N/A
f4 | f4 | Edit source |
ctrl+enter | cmd+down | View source |
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
Expand Down Expand Up @@ -219,8 +220,8 @@ shift+ctrl+enter | shift+cmd+enter | Start new line | ✅
1. Install Visual Studio Code 1.6.0 or higher
1. Launch Code
1. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (macOS)
1. Select `Install Extension`
1. Choose the extension '`intellij-idea-keybindings`' *or* run `ext install intellijkeybind`
1. Select `Extensions: Install Extension`
1. Choose the extension '`intellij-idea-keybindings`'
1. Reload Visual Studio Code


Expand Down
78 changes: 41 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "intellij-idea-keybindings",
"version": "0.1.9",
"version": "0.1.10",
"publisher": "k--kato",
"engines": {
"vscode": "1.6.x"
Expand Down Expand Up @@ -52,7 +52,7 @@
"key": "ctrl+space",
"mac": "ctrl+space",
"command": "editor.action.triggerSuggest",
"when": "editorTextFocus",
"when": "editorHasCompletionItemProvider && editorTextFocus && !editorReadonly",
"intellij": "Basic code completion (the name of any class, method or variable)"
},

Expand All @@ -75,7 +75,7 @@
"key": "ctrl+p",
"mac": "cmd+p",
"command": "editor.action.triggerParameterHints",
"when": "editorTextFocus",
"when": "editorHasSignatureHelpProvider && editorTextFocus",
"intellij": "Parameter info (within method call arguments)"
},

Expand Down Expand Up @@ -159,25 +159,25 @@
"key": "ctrl+/",
"mac": "cmd+/",
"command": "editor.action.commentLine",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Comment/uncomment with line comment"
}, {
"key": "ctrl+numpad_divide",
"mac": "cmd+numpad_divide",
"command": "editor.action.commentLine",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Comment/uncomment with line comment"
}, {
"key": "ctrl+alt+/",
"mac": "cmd+alt+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Comment/uncomment with block comment"
}, {
"key": "ctrl+alt+numpad_divide",
"mac": "cmd+alt+numpad_divide",
"command": "editor.action.blockComment",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Comment/uncomment with block comment"
}, {
"key": "ctrl+w",
Expand Down Expand Up @@ -206,7 +206,7 @@
"key": "alt+enter",
"mac": "alt+enter",
"command": "editor.action.quickFix",
"when": "editorTextFocus",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly",
"intellij": "Show intention actions and quick-fixes"
}, {
"key": "ctrl+y",
Expand All @@ -217,9 +217,15 @@
}, {
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"command": "editor.action.format",
"when": "editorTextFocus",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly",
"intellij": "Reformat code"
}, {
"key": "ctrl+alt+l",
"mac": "cmd+alt+l",
"command": "editor.action.formatSelection",
"when": "editorHasDocumentFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly",
"intellij": "Reformat selected code"
},


Expand Down Expand Up @@ -263,7 +269,7 @@
"key": "ctrl+x",
"mac": "cmd+x",
"command": "editor.action.clipboardCutAction",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Cut current line or selected block to clipboard"
}, {
"key": "ctrl+c",
Expand All @@ -275,7 +281,7 @@
"key": "ctrl+v",
"mac": "cmd+v",
"command": "editor.action.clipboardPasteAction",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Paste from clipboard"
},

Expand All @@ -292,13 +298,13 @@
"key": "ctrl+d",
"mac": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Duplicate current line or selected block"
}, {
"key": "ctrl+backspace",
"mac": "cmd+backspace",
"command": "deleteAllRight",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Delete line at caret"
},

Expand All @@ -315,13 +321,13 @@
"key": "ctrl+enter",
"mac": "cmd+enter",
"command": "lineBreakInsert",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Smart line split"
}, {
"key": "shift+enter",
"mac": "shift+enter",
"command": "editor.action.insertLineAfter",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Start new line"
},

Expand Down Expand Up @@ -358,13 +364,13 @@
"key": "ctrl+delete",
"mac": "alt+delete",
"command": "deleteWordLeft",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Delete to word end"
}, {
"key": "ctrl+backspace",
"mac": "alt+backspace",
"command": "deleteWordRight",
"when": "editorTextFocus",
"when": "editorTextFocus && !editorReadonly",
"intellij": "Delete to word start"
},

Expand Down Expand Up @@ -484,7 +490,7 @@
"key": "alt+f7",
"mac": "alt+f7",
"command": "editor.action.referenceSearch.trigger",
"when": "editorTextFocus",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor",
"intellij": "Find usages"
},

Expand Down Expand Up @@ -754,7 +760,7 @@
"key": "ctrl+b",
"mac": "cmd+b",
"command": "editor.action.goToDeclaration",
"when": "editorTextFocus",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "Go to declaration"
},

Expand All @@ -771,15 +777,8 @@
"key": "ctrl+shift+i",
"mac": "alt+space",
"command": "editor.action.previewDeclaration",
"when": "editorTextFocus",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor",
"intellij": "Open quick definition lookup"
}, {
"key": "ctrl+shift+b",
"mac": "ctrl+shift+b",
"command": "editor.action.goToTypeDeclaration",
"when": "editorTextFocus",
"intellij": "Go to type declaration",
"todo": "not working"
},


Expand Down Expand Up @@ -899,14 +898,19 @@











{
"key": "f4",
"mac": "f4",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "Edit source"
}, {
"key": "ctrl+enter",
"mac": "cmd+down",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "View source"
},



Expand Down Expand Up @@ -991,7 +995,7 @@
"key": "shift+f6",
"mac": "shift+f6",
"command": "editor.action.rename",
"when": "editorTextFocus",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly",
"intellij": "Rename"
},

Expand Down
Loading

0 comments on commit acb0827

Please sign in to comment.