Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening a folder in Visual Studio from command prompt

I see demos where a folder with an angular app is opened in visual studio code using

code .

from the terminal.

Could I do the same with Visual Studio. Perhaps I should write Powershell Scripts to accomplish the same?

like image 505
Shyam Poovaiah Avatar asked Mar 03 '18 15:03

Shyam Poovaiah


People also ask

How do I open a folder in Visual Studio?

On the Visual Studio menu bar, choose File > Open > Folder, and then browse to the code location. On the context (right-click) menu of a folder containing code, choose the Open in Visual Studio command. Choose the Open Folder link on the start window.

How do I open a folder in Visual Studio code terminal?

Great, now to open a folder to VSCode, just type code . and it'll magically open your folder into a new VSCode window! .


1 Answers

I was able to open a folder from command line using the following in VS 2017

devenv.exe /Edit <path to folder>
like image 168
Karthik Avatar answered Oct 24 '22 10:10

Karthik