简体   繁体   English

取消注释代码 (CTRL + K + U) 仅在 SQL Server Management Studio v18.4 中会话断开时有效

[英]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 ?有没有人对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.当会话连接到 SQL Server 实例时,我们无法通过按指定的快捷方式 ( CTRL + K + U ) 来取消注释 SQL Server 会话中的代码。 It only works when the session is disconnected (mostly when we open the SSMS and let sessions in disconnected mode).它仅在会话断开连接时有效(主要是当我们打开 SSMS 并让会话处于断开连接模式时)。

Please find the version, OS details as below:请查找版本,操作系统详细信息如下:

在此处输入图片说明

When the session is in disconnected mode, pressing CTRL + K + U works fine:当会话处于断开连接模式时,按CTRL + K + U可以正常工作:

在此处输入图片说明

otherwise, pressing CTRL + K + U acts like pressing CTRL+U (select database shortcut) only:否则,按CTRL + K + U就像按CTRL+U (选择数据库快捷方式)一样:

在此处输入图片说明

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我还检查了 SSMS 选项,它说相同但不起作用在此处输入图片说明

The default is: 默认为:

CTRL + K + C 

to comment and评论和

CTRL + K + U

to remove comment.删除评论。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SET .. WHERE .. 批量在 SSMS v18.4 中抛出错误 - SET .. WHERE .. within batch throwing an error in SSMS v18.4 CTRL + K、CTRL + F(格式代码)在 MS SQL Server 中不起作用 - CTRL + K, CTRL + F (Format Code) Not Working in MS SQL Server 为什么此SQL代码在Microsoft Access中不起作用,但在SQL Server Management Studio中起作用? - Why does this SQL code not work in Microsoft Access but works in SQL Server Management Studio? SQL 查询包含 / isabout 在 SQL Server Management Studio 中完美运行,但它不在代码后面 - SQL query with contains / isabout works perfect in SQL Server Management Studio, but it does not in code behind sql server management studio代码完成 - sql server management studio code completion 仅连接到SQL Server 2005数据库对SQL Management Studio 2008有什么好处? - Any benefits to SQL Management Studio 2008 when only connecting to SQL Server 2005 databases? SQL Server Management Studio v18.6 中的Python/R - Python/R in SQL Server Management Studio v18.6 无法使用NHibernate登录到SQL Server,但使用Management Studio或sqlcmd可以正常工作 - Cannot login to SQL Server using NHibernate, but with Management Studio or sqlcmd it works SQL Server:在Management Studio中运行时,游标仅在第一次时返回记录 - SQL Server: cursor only returns records first time when running in Management Studio 仅从SQL Server Management Studio编写SQL表脚本 - scripting SQL table only from SQL Server Management Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM