手动重命名SSMS中的选项卡

时间:2012-06-04 14:03:12

标签: sql-server tabs settings ssms

我总是对SQL Server Management Studio 2008 R2中哪个选项卡感到困惑。我没有发现标签的默认命名方案非常直观。有没有办法我可以手动重命名它们?

3 个答案:

答案 0 :(得分:23)

SSMS 2012中不存在已接受答案中建议的“MDI”选项。

但是,如果您打开选项屏幕并在文本编辑器>下设置以下标志;编辑器选项卡和状态栏>标签文字:

Include database name: False
Include file name:     True
Include login name:    False
Include server name:   False

Set these options 然后将查询保存为简单的内容,您可以看到所需的结果:

enter image description here

答案 1 :(得分:0)

然后不要使用标签,切换到窗口视图:

from the menu:
    tools - options
        in the dialog box, environment - general:
            click on the "MDI" environment radio button

我与标签战斗并放弃,这对我来说效果更好。标签只显示前几个字符,最终成为数据库名称的开头,这对我来说是无用的。您可以使用菜单 - “窗口”查看窗口列表。

答案 2 :(得分:0)

您可以使用Tabs Studio extension在SSMS中手动重命名标签。

右键单击一个标签,然后选择设置SQL注释

enter image description here

类型标签说明:

enter image description here

注释将添加到标签标题:

enter image description here

如果要使用自定义名称完全替换选项卡标题,请在SQLComment加载项选项中将转换替换从默认的$_ ${SQLComment}更改为${SQLComment}

enter image description here

标签名将完全替换为您的描述:

enter image description here