Skip to content

Commit

Permalink
Merge pull request #93706 from ChrisPapp/git_keybindings
Browse files Browse the repository at this point in the history
Add default keybindings for stage/revert/unstage selected ranges
  • Loading branch information
isidorn committed Apr 9, 2020
2 parents 2739645 + 482acb8 commit 7191302
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions extensions/git/package.json
Expand Up @@ -411,6 +411,26 @@
"category": "Git"
}
],
"keybindings": [
{
"command": "git.stageSelectedRanges",
"key": "ctrl+k ctrl+alt+s",
"mac": "cmd+k cmd+alt+s",
"when": "isInDiffEditor"
},
{
"command": "git.unstageSelectedRanges",
"key": "ctrl+k ctrl+u",
"mac": "cmd+k cmd+u",
"when": "isInDiffEditor"
},
{
"command": "git.revertSelectedRanges",
"key": "ctrl+k ctrl+r",
"mac": "cmd+k cmd+r",
"when": "isInDiffEditor"
}
],
"menus": {
"commandPalette": [
{
Expand Down

0 comments on commit 7191302

Please sign in to comment.