Skip to content

Commit 7191302

Browse files
authored
Merge pull request microsoft#93706 from ChrisPapp/git_keybindings
Add default keybindings for stage/revert/unstage selected ranges
2 parents 2739645 + 482acb8 commit 7191302

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

extensions/git/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,26 @@
411411
"category": "Git"
412412
}
413413
],
414+
"keybindings": [
415+
{
416+
"command": "git.stageSelectedRanges",
417+
"key": "ctrl+k ctrl+alt+s",
418+
"mac": "cmd+k cmd+alt+s",
419+
"when": "isInDiffEditor"
420+
},
421+
{
422+
"command": "git.unstageSelectedRanges",
423+
"key": "ctrl+k ctrl+u",
424+
"mac": "cmd+k cmd+u",
425+
"when": "isInDiffEditor"
426+
},
427+
{
428+
"command": "git.revertSelectedRanges",
429+
"key": "ctrl+k ctrl+r",
430+
"mac": "cmd+k cmd+r",
431+
"when": "isInDiffEditor"
432+
}
433+
],
414434
"menus": {
415435
"commandPalette": [
416436
{

0 commit comments

Comments
 (0)