简体   繁体   中英

Uncomment code (CTRL + K + U) only works when the session is disconnected in SQL Server Management Studio v18.4

Does anyone have the solution to the following issue happening in the SSMS v18.4 ?

We are unable to uncomment code in the SQL Server session by pressing the designated shortcut ( CTRL + K + U ) while the session is connected to SQL Server instance. It only works when the session is disconnected (mostly when we open the SSMS and let sessions in disconnected mode).

Please find the version, OS details as below:

在此处输入图片说明

When the session is in disconnected mode, pressing CTRL + K + U works fine:

在此处输入图片说明

otherwise, pressing CTRL + K + U acts like pressing CTRL+U (select database shortcut) only:

在此处输入图片说明

It's very strange and I couldn't find a solution yet.

I have also checked in the SSMS options and it says the same but doesn't work在此处输入图片说明

The default is:

CTRL + K + C 

to comment and

CTRL + K + U

to remove comment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM