简体   繁体   中英

Can i collapse all nodes in solution explorer in visual studio?

In visual studio, there seems to be no way to collapse all of a project's folders in solution explorer?

Does anyone know how this can be done?

Anyone? This has dogged me for years, i just wish there was a way without macros and addins, like they mention in this similar question Collapse all files at once in Solution Explorer window in Visual Studio

微软发布了一个非常方便的扩展名为CollapseSelection ,它就是这样做的。

Yes you can. Right click the project in solution explorer > Unload. Then reload the project.

An age old problem fixed.

(Original answer by the OP, hidden inside the question. Now a true answer. Community Wiki to prevent unfair rep gain).

Yes, that's very easy in the newer versions of Visual Studio (VS 2015 onwards). Simply press the buttons

Ctrl + Up Arrow + Up Arrow

Note: Hold the Control button and press the Up Arrow twice while the focus is on Solution Explorer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM