Skip to content

Commit 6a35422

Browse files
author
Keisuke KATO
authored
fixed #19 (#20)
* fixed #19 * fixed #19
1 parent 12ba91a commit 6a35422

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,13 @@ Linux, Windows | macOS | Feature | Supported
210210
---------------|------|---------|----------
211211
f7 | f7 | Next difference | Yes
212212
shift+f7 | shift+f7 | Previous difference | Yes
213-
ctrl+shift+enter | cmd+shift+enter | Start new line | 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
214215

215216

216217
## Installation
217218

218-
1. Install Visual Studio Code 1.4.0 or higher
219+
1. Install Visual Studio Code 1.6.0 or higher
219220
1. Launch Code
220221
1. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (macOS)
221222
1. Select `Install Extension`

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intellij-idea-keybindings",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"publisher": "k--kato",
55
"engines": {
66
"vscode": "1.6.x"
@@ -1230,10 +1230,16 @@
12301230
"when": "textCompareEditorVisible",
12311231
"intellij": "Previous difference"
12321232
}, {
1233-
"key": "ctrl+shift+enter",
1234-
"mac": "cmd+shift+enter",
1233+
"key": "alt+ctrl+enter",
1234+
"mac": "alt+cmd+enter",
1235+
"command": "editor.action.insertLineBefore",
1236+
"when": "editorTextFocus && !editorReadonly",
1237+
"intellij": "Start new line before current"
1238+
}, {
1239+
"key": "shift+ctrl+enter",
1240+
"mac": "shift+cmd+enter",
12351241
"command": "editor.action.insertLineAfter",
1236-
"when": "editorTextFocus && !suggestWidgetVisible",
1242+
"when": "editorTextFocus && !editorReadonly && !suggestWidgetVisible",
12371243
"intellij": "Start new line"
12381244
}
12391245
]

src/package-with-comment.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intellij-idea-keybindings",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"publisher": "k--kato",
55
"engines": {
66
"vscode": "1.6.x"
@@ -1285,10 +1285,17 @@
12851285
"intellij": "Previous difference"
12861286
},
12871287
{
1288-
"key": "ctrl+shift+enter",
1289-
"mac": "cmd+shift+enter",
1288+
"key": "alt+ctrl+enter",
1289+
"mac": "alt+cmd+enter",
1290+
"command": "editor.action.insertLineBefore",
1291+
"when": "editorTextFocus && !editorReadonly",
1292+
"intellij": "Start new line before current"
1293+
},
1294+
{
1295+
"key": "shift+ctrl+enter",
1296+
"mac": "shift+cmd+enter",
12901297
"command": "editor.action.insertLineAfter",
1291-
"when": "editorTextFocus && !suggestWidgetVisible",
1298+
"when": "editorTextFocus && !editorReadonly && !suggestWidgetVisible",
12921299
"intellij": "Start new line"
12931300
}
12941301
]

0 commit comments

Comments
 (0)