Search code examples
visual-studiocmdvisual-studio-2019

Visual Studio alternative of command "code ."


We've all seen this command sequence:

git clone [someRepo]
cd [someRepo]
code .

This will clone some repo, get into the folder and open it using Visual Studio Code. Without going into arguments whether VSCode or VS is better - I do use Visual Studio. Is there some VS command that is similar to "code .", that will open some solution directly from git bash/powershell/cmd?

Thanks in advance!


Solution

  • As an improvement of my first answer you can use :

    git clone [someRepo]
    cd [someRepo]
    start devenv .
    

    It will open visual studio with the current directory.