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?
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.