I suggest you ...

CTRL+W should close the current tab as a default key bind

960 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    DanDan shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    31 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Michal TureckiMichal Turecki commented  ·   ·  Flag as inappropriate

        If anything both shortcuts should be supported simultaneously - Ctrl + W seems to be a popular choice for closing the current document/tab on many platforms. Ctrl + F4 is undoubtedly popular shortcut on Windows with it's long history.
        Add support for multiple shortcuts to the same action and set both. Problem solved.

      • William EddinsWilliam Eddins commented  ·   ·  Flag as inappropriate

        I actually had no idea Ctrl + F4 did this, I've only ever seen Ctrl + W everywhere, on all platforms. Windows Explorer works with Ctrl + W, but not Ctrl + F4 (it opens the location bar, the same as normal F4)

      • KyralessaKyralessa commented  ·   ·  Flag as inappropriate

        This is the first keyboard setting I change on any new installation of Visual Studio. (The second is Control-Shift-W to close all tabs.)

      • Sandeep PrajapatiSandeep Prajapati commented  ·   ·  Flag as inappropriate

        Agree.. Please keep it uniform with other tab-able application. almost all browsers uses CTRL+W to close current tab.

      • Shiv KumarShiv Kumar commented  ·   ·  Flag as inappropriate

        I don't like this suggestion, I'm afraid. Ctrl+F4 is a windows standard for closing tabs or child (Remember MDI child windows?) windows since I can remember. Please don't change this in VS.

      • Anonymous commented  ·   ·  Flag as inappropriate

        ctrl-f4 is really awkward to use. So much so that I prefer to use the mouse to close tabs.(I have big hands, but I need to lift from normal typing!)

      • Hung LeHung Le commented  ·   ·  Flag as inappropriate

        In Tools | Options | Keyboard...

        Add CTRL+W as a Global shortcut for Window.CloseDocumentWindow
        Remove the CTRL+W shortcut for Edit.SelectCurrentWord
        The caveat to this is if you are used to using CTRL+W to select the current word. If you do, find another shortcut that works for that.

      • Sharon TalbotSharon Talbot commented  ·   ·  Flag as inappropriate

        As a person with small hands, I'd like to state that Ctl-F4 does not work for me. This is a common interaction, so I should be able to do it one-handed. Ctl-W is a standard elsewhere.

      • JustinJustin commented  ·   ·  Flag as inappropriate

        I disagree. It's a travesty that Ctrl+W has ever been used for this purpose. It's as if starting today, it slowly became common on linux or osx to use Ctrl+C to close apps. Ctrl+F4 has been the standard for a long time now, just as Ctrl+C has meant copy. I still remember when each app used a different keystroke for Copy, and now we're backsliding on the CloseWindow command. I wonder where this misfeature started? I suspect Netscape.

      • DavidDavid commented  ·   ·  Flag as inappropriate

        I think this would be a great default.

        For those who don't know, you can middle click to close a tab.

      ← Previous 1

      Feedback and Knowledge Base