Skip to content

Instantly share code, notes, and snippets.

@Jalalx
Last active October 12, 2020 13:28
Show Gist options
  • Save Jalalx/550a5bf69443ca2d64e4257e629aa967 to your computer and use it in GitHub Desktop.
Save Jalalx/550a5bf69443ca2d64e4257e629aa967 to your computer and use it in GitHub Desktop.
Adding Git Bash to Visual Studio 2019 Menu + Shortcut keys

Adding Git Bash to Visual Studio 2019 Menu + Shortcut keys

  1. Open Visual Studio 2019 and go to Tools > External Tools...

  2. Click Add button and fill the fields like this:

    • Title: Git Bash
    • Command: C:\Program Files\Git\git-bash.exe
    • Arguments:
    • Initial Directory: $(SolutionDir)

    and click Ok button.

  3. From Tools > Options > Environment > Keyboard, enter Tools.ExternalCommand2 (If it's your second custom external tool) in the text box under the "Show commands containing" and select it.

  4. Then select the text box under "Press Shortcut keys" and press your favorite keys (like Alt+Space) and click on Assign button and then click OK and you're done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment