Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open a folder in Visual Studio

I am creating an Angular project but I love the features of Visual Studio 2012. I am looking for an option to open the folder in Visual Studio 2012 (Similar to "Open Folder" option in Sublime text), which will list all the contents of the folder. Currently, I am navigating the files in windows explorer and opening them in Visual Studio as I need them.

One of the options I can think of is to create a project (for e.g. Console application) and add these files and folder into that, but I will not compile the project.

Just wondering if there is a better way (a VS template that I am not aware of) or a hidden option somewhere in VS.

like image 433
Mano Avatar asked Nov 08 '12 03:11

Mano


People also ask

How do I open a folder in VS Code in Windows?

You can go via File > New window or ctrl+shift+n for a new window, and open the second folder there.

How do I open a folder in Visual Studio using CMD?

If you already have a Terminal session running, quit or restart it. When you are in the directory of the files you want to open in VS Code, type code . (that is the word “code” followed by a space, then a period) and the folder will automatically open in VS code.


2 Answers

Solution
File -> Open Website -> File System and choose the folder.
No extra project or solution file. VS just opens the folder as it is.

This solution still valid even in Visual Studio 2017 community

like image 188
Mano Avatar answered Oct 19 '22 14:10

Mano


There is an other option now and that is to use Visual Studio Code. It is much more lightweight, supported by Microsoft and is very well suited for js development including angular.

Otherwise in Visual Studio 2017 it's possible to open a folder directly now:

Open folder

You can find more details in here.

like image 41
Ilya Chernomordik Avatar answered Oct 19 '22 16:10

Ilya Chernomordik