What is the VS Code stage changes
shortcut?
I mean is it possible to stage a selected file without clicking the plus button in the version control tab?
Maybe there is no shortcut an it is somehow possible to setup one?
ctrl+shift+G
up/down arrow keys
spacebar
ctrl+up
spacebar
ctrl+up
Preferences: Open Keyboard shortcuts (JSON) command: workbench.action.openGlobalKeybindingsFile
Then put in the following:
{
"key": "ctrl+up",
"command": "git.stage",
"when": "workbench.scm.active"
}
git.Stage
and git.StageAll
. They have no keybinding assigned by default. You can assign a custom one in your keyboard shortcut settings. CMDK+CMDS
for those who interested in stageAll / unstageAll, you can also do these as well
[
{
"key": "ctrl+up",
"command": "git.stageAll",
},
{
"key": "ctrl+down",
"command": "git.unstageAll",
}
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With