Shane Bartholomeusz

Geek and lover of all things tech related

Visual Studio: Close Current Tab Keyboard Shortcut

Overview

It’s common today to use the CTRL+W in various applications including most web browsers. If you’ve used Visual Studio you’ve probably noticed that this keyboard shortcut does not work when trying to close the currently opened tab.

In this article, I’ll show you how you can easily configure Visual Studio to close the currently opened tab.

Visual Studio Icon

Configuration

Ok, lets get started …

Here’s how you can configure the keyboard shortcut in Visual Studio:

  1. Navigate to TOOLS > OPTIONS > KEYBOARD
  2. Add CTRL+W global shortcut to Window.CloseDocumentWindow
  3. Remove the CTRL+W shortcut for Edit.SelectCurrentWord

Final Thoughts

I hope you’ve found this quick Visual Studio tip to be useful. If you have found alternative ways to configure this, please feel free to share them in the comments below.

Happy coding 🙂

Shane Bartholomeusz

2 Comments

  1. Thanks for the clear explanation!

    I cannot believe we still need to do this. It also seems that people are (still) forgetting that this shortcut exists and should exist. I can’t understand why someone would want to use ctrl+f4 instead. This kind of shortcut needs to be close to the home row for any power user to quickly work with any kind of text editing. (Which is what coding amounts to, obviously)

Leave a Reply

© 2024 Shane Bartholomeusz

Theme by Anders NorenUp ↑