2

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?

Lukasz Szozda
  • 162,964
  • 23
  • 234
  • 275
user2023861
  • 8,030
  • 9
  • 57
  • 86

1 Answers1

3

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.

Lukasz Szozda
  • 162,964
  • 23
  • 234
  • 275