Merge pull request #93706 from ChrisPapp/git_keybindings

Add default keybindings for stage/revert/unstage selected ranges
This commit is contained in:
Isidor Nikolic
2020-04-09 17:13:27 +02:00
committed by GitHub

View File

@@ -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": [
{