Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save niisar/258827e86e1903d137b0ed80356b0ae6 to your computer and use it in GitHub Desktop.
Save niisar/258827e86e1903d137b0ed80356b0ae6 to your computer and use it in GitHub Desktop.
Using CTRL+W to close tabs in Visual Studio

In Tools | Options | Keyboard...

  1. Add CTRL+W as a Global shortcut for Window.CloseDocumentWindow
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment