Skip to content

Commit 588af21

Browse files
MasterSimonKeisuke KATO
authored andcommitted
Add 'Move Statement Down' and 'Move Statement Up' command (#26)
1 parent 8b7c9cc commit 588af21

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ f11 | f3 | Toggle bookmark | N/A
151151
ctrl+f11 | alt+f3 | Toggle bookmark with mnemonic | N/A
152152
ctrl+0 | ctrl+0 | Go to numbered bookmark | N/A
153153
shift+f11 | cmd+f3 | Show bookmarks | N/A
154+
ctrl+shift+up | cmd+shift+up | Move Statement Up | ✅
155+
ctrl+shift+down | cmd+shift+down | Move Statement Down | ✅
154156

155157
### Refactoring
156158

src/package-with-comment.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,20 @@
952952
"when": "editorHasDefinitionProvider && editorTextFocus",
953953
"intellij": "View source"
954954
},
955+
{
956+
"key": "shift+ctrl+down",
957+
"mac": "shift+cmd+down",
958+
"command": "editor.action.moveLinesDownAction",
959+
"when": "editorTextFocus",
960+
"intellij": "Move Statement Down"
961+
},
962+
{
963+
"key": "shift+ctrl+up",
964+
"mac": "shift+cmd+up",
965+
"command": "editor.action.moveLinesUpAction",
966+
"when": "editorTextFocus",
967+
"intellij": "Move Statement Up"
968+
},
955969
/*
956970
{
957971
"key": "alt+home",

0 commit comments

Comments
 (0)