折叠/展开代码块

时间:2017-02-22 10:00:54

标签: sql-server-2008 ssms ssms-2016

在Microsoft SQL Server Management Studio 2016中,如何生成“ - ”和“+”(如下图所示)以折叠/扩展代码块?

enter image description here

enter image description here

2 个答案:

答案 0 :(得分:1)

使用Begin End作为代码块

答案 1 :(得分:0)

我无法找到任何方法来控制它。基于打开文件和看到代码折叠/块之间的滞后时间,我认为它基于解析代码,然后基于该分析创建可折叠块,SSMS知道SQL语句/查询的语法。