Press "Ctrl" and "W" to enter the key combination in the box.Īs shown above once you entered the shortcut key, click "Assign". This will make sure that your shortcut for the command will store in the global settings and will be applicable to any instance of the Visual Studio IDE all over the time.Īs the 3rd step, click on the textbox "Press shortcut keys" and enter your desired shortcut key by pressing the respective keyboard keys. Select "Global" as the "Use new shortcut in" dropdown. Now, the 2nd step is to select the proper location to store a shortcut key for it. This command executes instruction to the Visual Studio IDE to close the currently open document. In the input box type "File.Close" and you will see the command filtered in the list. Have a look into the following screenshot: This textbox searches for the input command in the list just below it. There you will see a input box called "Show commands containing". Click that to open up the Keyboard settings page at the right side. There you will find a link called "Keyboard". In the options dialog expand the "Environment" tree node from the left panel. To do this open the Options page from the Tools menu as shown below: So, let's create our own shortcut key for that. Ever imagined of a way to use a shortcut to handle it just like we do for the internet browsers? Let me tell you that, there are no shortcut assigned for this. Now sometime it is very difficult to close them one by one by clicking the close button. of open documents inside Visual Studio, you will see all of them in the tab bar as shown below: Let us again describe here what we want to achieve by this post. How can you do that? Read the post to configure your Visual Studio IDE to assign a shortcut for it. of documents open in your tab and you want to close some of them with a shortcut instead of clicking one by one. In Visual Studio, you might want to do the same. If you have tabs in the open tab bar and want to close the currently open tab, you can use Ctrl + W shortcut key instead of clicking the close button. You might know that Ctrl + W is a shortcut key for many browsers like Internet Explorer, Firefox, Chrome etc.
0 Comments
Leave a Reply. |