VS编辑器中显示列标志线

7 篇文章 0 订阅

 source: click here. thanks to the author saraford!

 

Update 12/2/2004:  Uploaded an image from Visual Studio 2005 Beta.  Note the image below shows guidelines at column numbers 5 and 30, but the regkey value is RBG(255,0,0), 4, 29.  The Guideline column numbers are 0-based in the registry.

 

Update 11/29/2004: I've corrected the two (embarrassing) typos below.  I must have had thanksgiving dinner on the brain at the time.  1.  The reg key is [HKEY_CURRENT_USER]/Software/Microsoft/VisualStudio/8.0/Text Editor (note the space between Text and Editor).  2. It's RGB, not RBG.  The example had a typo, but it is now corrected.

 

Guidelines at columns 5 and 30

 

Guidelines are visible column indicators for the VS Editor.  During the last test pass, I came across a test case named “Guidelines” which got my immediate attention.   I never heard of this before, so I made sure to spend extra time testing this cool, but hidden little feature during the Beta test pass.  I didn’t find any issues with it, so I feel it is safe to share.  Let me know if you run into any issues with it.

 

Warning!  To enable guidelines, you’ll need to modify your registry settings.   Follow the instructions below at your own risk.

 

Enabling Guidelines

 

First, shut down Visual Studio 2005 if already started.

 

Under

[HKEY_CURRENT_USER]/Software/Microsoft/VisualStudio/8.0/Text Editor

Create a string value called

Guides

 

Set Guides to the following

RGB(x,y,z) n1,...,n13

Where x,y,z are the RGB values and n is the column number.  You can have at most 13 guidelines.

 

For example,

Guides = RGB(128,0,0) 5, 80

will place a Red guideline at column numbers 5 and 80.

 

And now launch VS and open a text file.

 

Disabling Guidelines

 

An obvious no-brainer, just delete the Guides keys you created above.  Restart VS, and no more guidelines.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值