I suggest you ...

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

This suggestion is migrated to Developer Community. Please use below link to view the current status.

1,196 votes
Sign in
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Dan shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

Hi Supporters of this item,

We are considering making this available as an option in a future release of Visual Studio.

If this is made available, we expect the feature to need to be optional as there are many who prefer the current keybinding of Ctrl+W to stay as it is.

Mark Wilson-Thomas
Program Manager, Visual Studio IDE Team


Sign in
Password icon
Signed in as (Sign out)
  • paul kohler commented  ·   ·  Flag as inappropriate

    Though I recall the Ctrl + F4 hotkey, I've been using Alt + F, C for this. Works in many other Windows applications as well.

    As an aside, people do sometimes comment that I have a pianist's fingers, but I still prefer to be able to get back to typing as soon as possible.

  • Rodolfo commented  ·   ·  Flag as inappropriate

    Now, even if you configure Ctrl+W to close tab on VS 2017, it still selects the word! What the ****? Really?!

  • Anonymous commented  ·   ·  Flag as inappropriate

    I use the chords Ctrl+W Ctrl+W and Ctrl+W W. Note I use a customized version of the VS 2005 profile which uses Ctrl+W as the first sequence in many chords. If you don't care about that, you are free to simply bind it to Ctrl+W. Don't see the point of this as a feature request.

  • Justin Clareburt (MSFT) commented  ·   ·  Flag as inappropriate

    Ctrl+F4 has been a Windows standard shortcut key for closing internal windows for as long as Windows has had windows. Ctrl+W is relatively new, and spawned from Mac and has become popular in web browsers.
    Also, Visual Studio currently uses Ctrl+W to: Select a word (in Default theme), and Open various tool windows (in other keyboard schemes like Visual C# 2005). We would need to find new shortcuts for these commands.

    That being said, it's a valid point that it's much easier to press Ctrl+W than to press Ctrl+F4.

    We are currently in the process of designing a new keyboard scheme for the new version of Visual Studio. Due to the significant feedback on this topic, and the clear feedback about Ctrl+F4 being too hard to reach (unless you're a pianist), we are currently keeping Ctrl+W for Close Window.

    We hope that will make people happy. :-)

  • James Hood commented  ·   ·  Flag as inappropriate

    If I could press Ctrl-F4 easily, I would have been a pianist instead of a programmer. Please keep common shortcut keys under one octave. Thanks.

  • Michal 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 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)

  • Kyralessa 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 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 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 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.

← Previous 1

Feedback and Knowledge Base