VS Code Shell Shortcut for Git Bash Put this file code in C:\Users\<username>\AppData\Local\Code\bin aside code.cmd. Assuming this path is already in your %PATH% you can now run the command to open a file code file.txt