Skip to content

Instantly share code, notes, and snippets.

@jhorsman
Forked from jpoehls/gist:2030795
Last active May 17, 2019 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhorsman/63676578b1376359a4337aa31417fbfe to your computer and use it in GitHub Desktop.
Save jhorsman/63676578b1376359a4337aa31417fbfe to your computer and use it in GitHub Desktop.
Using CTRL+W to close tabs in Visual Studio

For Visual Studio 2017 (and other versions) with ReSharper

In Tools | Options | Environmen | Keyboard...

  1. Add CTRL+W as a Global shortcut for Window.CloseDocumentWindow
  2. Remove the CTRL+W shortcut for Edit.SelectCurrentWord
  3. Remove the CTRL+W shortcut from ReSharper.ReSharper_ExtendSelection (it might be assigned twice)

If CTRL+W does not work after the steps above, it might be assigned to something else. Check these instructions to troubleshoot that: https://gist.github.com/jpoehls/2030795#gistcomment-2335647

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.

Massive thanks to https://gist.github.com/jpoehls/2030795 !

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