In Visual Studio Code, Cmd-Shift-P
gives me the command palette. There are many Git commands listed in the palette, but the only result for "add" is "Add file to .gitignore". This is not what I want. I want the equivalent of git add $CURRENT_FILE
. Such a command is provided, for example, by the git-plus extension to Atom. What is its equivalent in Visual Studio Code?
Visual Studio Code has integrated source control management (SCM) and includes Git support out-of-the-box.
The new Git experience is the default version control system in Visual Studio 2019 from version 16.8 onwards. However, if you want to turn it off, you can. Go to Tools > Options > Environment > Preview Features and then toggle the New Git user experience checkbox, which will switch you back to Team Explorer for Git.
I eventually found it: the command is called Git: Stage Changes
. Visual Studio confusingly deviates from Git terminology here. There is a (sadly closed) GitHub issue regarding this problem.
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