Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2013: auto-refresh solution explorer in "show all files" mode

Is there any way or some unobvious workaround to make the Solution Explorer refresh automatically (in Show All Files mode) when there are changes to the project directory tree? Currently if I rebuild a project with different output settings (which would add some files and remove some others), no changes would get reflected in Solution Explorer until I manually click refresh button. Doesn't seem too convenient for a tool aimed at programming, i.e. automating repetitive tasks...


Update

A picture is worth a thousand words:

My relevant options @ Tools > Options > Environment > Documents:


options


  1. Let's assume that Release directory is empty and Show All Files mode enabled

before build

  1. Now, I build my Release config... Build succeeds, but no changes are visible in Solution Explorer:

enter image description here

  1. Only after I hit refresh button manually can I see the results of build process:

enter image description here

So I'm basically asking if there are ways to make Solution Explorer update automatically when changes occur, not to make externally modified files auto-reload in VS editors.

like image 833
sunny moon Avatar asked Jul 11 '15 05:07

sunny moon


People also ask

How do I reload all projects in a solution?

In Solution Explorer, select the projects you want to load (press Ctrl while clicking to select more than one project), and then right-click on the project and choose Reload Project. Visual Studio will remember which projects are loaded the next time you open the solution locally.

How do I show a folder in Visual Studio?

In Visual Studio, click File > Open > Folder. Navigate to the folder, and click Select Folder. This opens the folder in Solution Explorer and displays its contents, files and any subfolders.

How do I add an existing folder to Solution Explorer Visual Studio?

Right click the project or contained folder and choose Add | Existing Item... . Use Show All Files . Click on files or folders you would like to add to the project and choose Include In Project . Drag and drop files and folders from Windows Explorer.


2 Answers

@Sunny Moon - There is no option right now to automatically refresh the project tree if changes are introduced. You have to manually select the Refresh button in the command bar of Solution Explorer. I'm going to track this feedback along with other areas I've been collecting for Solution Explorer so thanks for sharing your frustration here.

Thanks! Cathy Visual Studio IDE Team

like image 148
Cathy Sullivan Avatar answered Sep 28 '22 07:09

Cathy Sullivan


Just set check the “Auto-load changes, if saved” check box on VS2013 Option menu >> Environment menu.

like image 31
DeJaVo Avatar answered Sep 28 '22 07:09

DeJaVo