有没有办法突出显示当前活动的代码块在Visual Studio 2010? [英] Is there a way to highlight the currently active code block in Visual Studio 2010?

查看:239
本文介绍了有没有办法突出显示当前活动的代码块在Visual Studio 2010?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2010中,如果您将鼠标悬停在小[ - ]减号上,它将突出显示您的代码块。我的问题是,有一种方法,这个块总是突出显示,而你在里面编码?这样,当我在方法和类之间跳跃时,我正在处理的任何块都会突出显示,以帮助我的眼睛快速聚焦。



有选项在Visual Studio中为此?如果没有,是否有任何插件可以做到这一点?



解决方案

ReSharper很好,但如果你也在寻找各种语言的东西,有 Visual Assist X ,这也有不错的突出显示。

它也有在当前块中突出显示大括号的选项:





然后您有一个直线荧光笔,或者作为一个简单的框架:





或作为一个好看的背景:



很遗憾,没有选项可以启用一个真正的块突出显示,如悬停在 [ - ] 按钮。 :|我也寻找,但没有找到这样的选项在Visual Studio选项。


In Visual Studio 2010, if you hover your mouse over the little [-] minus sign, it will highlight that block of code for you. My question is, is there a way for this block to always be highlighted while you are coding inside of it? That way, as I'm hopping between methods and classes, whatever block I'm currently working on would be highlighted to help my eyes quickly focus.

Is there an option within Visual Studio for this? If not, are there any plugins that do this?

解决方案

ReSharper is nice, but if you're also looking for something for all kinds of languages, there is Visual Assist X, which also does nice highlighting.
It, too, has the option to highlight matching braces in your current block:

Then you have a line highlighter, either as a simple frame:

Or as a good looking background:

Sadly, there is no option in it to enable a real "block" highlighting like hovering over the [-] button does. :| I also looked for, but didn't find such an option within the Visual Studio options.

这篇关于有没有办法突出显示当前活动的代码块在Visual Studio 2010?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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