Search code examples
sql-serverxmlssmsssms-2012

In SQL Server Management Studio, how do I set up the keyboard shortcuts so that ctrl+w closes an XML window?


In SQL Server Management Studio, how do I set up the keyboard shortcuts so that ctrl+w closes an XML window?

I know how to do this for a regular query window. Here's how. But some of my tables have XML columns, and when I click on an XML value, it opens a window that doesn't respond to my custom ctrl+w command. Is this possible to set up?


Solution

  • Yes, you could set up CTRL+W shortcut to close text tabs (like XML preview).

    First you have to remove existing shortcut CTRL+W which highlights current word (click Remove):

    enter image description here

    Then add new shortcut (click Assign):

    enter image description here

    To be sure you could restart SSMS.