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
jdanaAsked:
Who is Participating?
 
WaibelRDCommented:
You can right click a tab and select "Close ALL but this" then close the tab you right clicked.
0
 
Jacques Bourgeois (James Burger)PresidentCommented:
There is none by default, but you can define one.

Tools...Options...Environment...Keyboard.

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.
0
 
Roopesh ReddyIT AnalystCommented:
0
 
jdanaAuthor Commented:
Perfect. Thanks.
0
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.