Visual Studio - Shortcut to close all open files in the main window.

See the image below. Is there a menu option or key shortcut to simply close all these open files?Open Files
Who is Participating?
You can right click a tab and select "Close ALL but this" then close the tab you right clicked.
Jacques Bourgeois (James Burger)PresidentCommented:
There is none by default, but you can define one.


The command you are looking for is Window.CloseAllDocuments.

Go to Press shortcut keys and press the combination that you want. Before accepting it, check at the bottom of the page. It tells you if that combination is already in use. If so, you decide if you override it with yours.
Roopesh ReddyIT AnalystCommented:
jdanaAuthor Commented:
Perfect. Thanks.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.