Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know... You can "Close all but this" on files in the File Tab Channel? - #124

This is a really, really useful feature.  But i'll always remember how difficult it was for me to find bugs with it.  That really frustrates a tester, when you can't break a dev's newly written code.  =)

File Tab Channel Close All But This command

Right-click on a File Tab, and select Close All But This. This command will close all the other files in the editor, except for the currently-activated file, obviously.

And yes, you can bind it to a keyboard shortcut.  The command is File.CloseAllButThis.  In the general environment settings, this isn't bound to any keyboard shortcut, so have fun!

Technorati tags: ,
Posted: Tuesday, January 08, 2008 3:00 AM by saraford

Comments

Maggie said:

Is there a way to do this so it only closes all (but one) of the open files in the same tab group?  I use two tab groups often.

# January 8, 2008 10:32 AM

Programmerman said:

I love this command!  I personally have it mapped to Ctrl + Shift + F4.  I don't know what I'd do without it!

# January 8, 2008 11:38 AM

AndrewSeven said:

I use this often. I also have "Close All Documents" on a custom toolbar that is always visible.

I think the need for, as well as the heavy use of, this option should be a strong indicator of problems with how windows are managed in VS.

(The bug is not in this feature, this feature helps with a problem that is by-design)

# January 9, 2008 4:21 PM

xjb said:

# December 22, 2008 8:54 PM

Секреты Visual Studio said:

Щелкните правой кнопкой мышки на закладке файла и выберите Close All But This (Закрыть все, кроме этого)

# May 15, 2009 1:51 AM

Секреты Visual Studio said:

Щелкните правой кнопкой мышки на закладке файла и выберите Close All But This (Закрыть все, кроме этого)

# May 15, 2009 1:51 AM

Секреты Visual Studio said:

Эта та функция, без которой я не могу жить. Одна из лучших функций, которые мы добавили в Visual Studio

# May 19, 2009 3:45 AM
New Comments to this post are disabled
Page view tracker