Skip to content

Instantly share code, notes, and snippets.

@lawrence-laz
Last active November 21, 2022 08:14
Show Gist options
  • Save lawrence-laz/db85fe077022d8eda9e53e39cab02a96 to your computer and use it in GitHub Desktop.
Save lawrence-laz/db85fe077022d8eda9e53e39cab02a96 to your computer and use it in GitHub Desktop.
Open terminal or file explorer in solution folder for Visual Studio.
# Open command prompt in the current solution's folder.
# Keyboard shortcut: Alt, T, M.
# Visual Studio > Tools > External Tools...
Title: Co&mmand Prompt
Command: cmd.exe
Arguments:
Initial directory: $(SolutionDir)
Close on exit: ✔
# Open git bash in the current solution's folder.
# Keyboard shortcut: Alt, T, B.
# Visual Studio > Tools > External Tools...
Title: Git &Bash Here
Command: C:\Program Files\Git\git-bash.exe
Arguments: --login -i
Initial directory: $(SolutionDir)
# Open file explorer in the current solution's folder.
# Keyboard shortcut: Alt, T, F.
# Visual Studio > Tools > External Tools...
Title: Open &File Explorer
Command: explorer.exe
Arguments: $(SolutionDir)
# Open power shell in the current solution's folder.
# Keyboard shortcut: Alt, T, P.
# Visual Studio > Tools > External Tools...
Title: &Power Shell Here
Command: cmd.exe
Arguments: /C start "" "pwsh.exe" -nologo -w maximize
Initial directory: $(SolutionDir)
Close on exit: ✔
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment