如何查看制表位在 SQL Server Management Studio 编辑器中的位置? [英] How can I see where the tab stops are in the SQL Server Management Studio editor?

查看:20
本文介绍了如何查看制表位在 SQL Server Management Studio 编辑器中的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用语音识别来口述 SQL,而将事情排成一行是一件痛苦的事情.如果我能看到制表符停止的位置,我会节省很多时间.

I dictate SQL using speech recognition, and lining things up is a pain. If I could see where the tab stops are it would save me a lot of time.

推荐答案

Management Studio 支持一个未记录的功能 Visual Studio 也有.它在编辑器窗口的特定列位置添加了垂直引导线.

Management Studio supports an undocumented feature that Visual Studio has as well. It adds vertical guide lines to the editor window at specific column locations.

使用下面的文本创建一个 .reg 文件并打开它以将其与您的注册表合并.这将在 SQL Server 2005 中每 8 个字符(最多 96 列)添加一行.根据需要进行修改以适合您的选项卡大小.它似乎不支持超过 12 行.字符串的 RGB 部分应该设置颜色,但对我来说它总是显示为黑色.您很快就会注意到为什么这是一个未记录的功能 - 这些行出现在不需要的位置,例如消息输出窗口.

Create a .reg file using the text below and open it to merge it with your registry. This will add a line every 8 characters (up to column 96) in SQL Server 2005. Modify as needed to suit your tab size. It does not appear to support more than 12 lines. The RGB portion of the string is supposed to set the color, but it always displays as black for me. You'll quickly notice why this is an undocumented feature - the lines appear in unwanted locations such as the Messages output window.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\Shell\Text Editor]
"Guides"="RGB(128,0,0) 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96"

这篇关于如何查看制表位在 SQL Server Management Studio 编辑器中的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆