SQL Server Showing or hide line numbers at SSMS with shortcut?

bbmckpt7  于 2023-10-15  发布在  其他
关注(0)|答案(2)|浏览(85)

Is it possible to use a shortcut for the showing or hide the line numbers at the SSMS ?

I know its possible to go to the settings and to do it. But is there really no shortcuts for it? If I see it right, I cant even sets shortcut keys keyboards setting for it.

Its would be very usefull, if available.

gmxoilav

gmxoilav1#

There is currently no such shortcut, but you could probably create a macro to accomplish it or use an extension that allows you to define shortcuts. The only native way to show/hide the line numbers is to do the following:

  1. Click on Tools > Options
  2. Click on Text Editor > Transact SQL
  3. Check the "Line Numbers" box

r7s23pms

r7s23pms2#

No, according to the current documentation there is no keyboard shortcut to control line numbers, you enable or disable from the Options dialog (Text Editor > All Languages > General).

See the official documentation

相关问题