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?
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):
Then add new shortcut (click Assign):
To be sure you could restart SSMS.