R# 插件类似于 CodeRush“语句突出显示”
请参阅此处 http://www.hanselman.com/blog/InSearchOfThePerfectMonospacedProgrammersFontInconsolata.aspx -为了获得更好的描述 - 语句块突出显示 - 例如,在链接上的图片中,“语句块”用垂直线分组。 我知道这是 CodeRush 的一个功能 - R# 是否有类似的功能,或者有一个插件可以执行相同的操作?
See here http://www.hanselman.com/blog/InSearchOfThePerfectMonospacedProgrammersFontInconsolata.aspx - for want of a better description - the statement block highlighting - eg in the pics on the link the "statement blocks" are grouped with a vertical line. I understand this is a feature of CodeRush - does R# have either anything similar, or a plugin to do the same?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
R# 有一个称为“突出显示当前行”的功能,您必须在 ReSharper 选项中启用该功能。 这在深色背景、高对比度主题上看起来很糟糕,所以如果你使用一个,我建议进入 Visual Studio 选项,在“字体和”下。 颜色并转到“ReSharper - 当前行”并将背景颜色设为较暗的阴影,与背景没有太大的对比度。
R# 还具有匹配的大括号突出显示,在同一 VS 选项对话框下也可以进行颜色配置。
这能回答你的问题吗?
R# has a feature called Highlight current line, which you have to enable in the ReSharper options. This looks like crap on dark background, high contrast themes, so if you use one I'd suggest going into the Visual Studio options, under Fonts & Colors and going to "ReSharper - current Line" and making the background color a darker shade that doesn't have as much contrast with the background.
R# also has matching brace highlighting, which is color-configurable as well under the same VS option dialog.
Does that answer you question?
Notepad++ 有一个很好的大括号匹配功能,垂直线与大括号匹配。 它不是VS,所以我只在遇到一些令人困惑的JS时使用它,剪切和粘贴,弄清楚大括号并返回VS。 如果 VS 或 R# 中存在此类功能,那就太好了。
Notepad ++ has a nice brace matching feature, with vertical lines matching the braces. It's not VS, so I only use it when I am faced with some confusing JS, cut and paste, figure out the braces and go back to VS. It would be GREAT if this sort of feature existed in VS, or R#.
我使用当前可用的最新版本的 ReSharper — ReSharper 4.5 — 但不幸的是,我不相信有任何功能可以在匹配的大括号之间绘制垂直线,如您引用的屏幕截图所示。
Ben 提到的我发现有用的功能是匹配的大括号突出显示,但这仅在光标靠近左大括号或右大括号时才会生效。
I use the latest version of ReSharper that is currently available — ReSharper 4.5 — but unfortunately I don't believe there is any feature for drawing a vertical line between matching braces, as in the screen-shots you referenced.
The feature I find useful, which Ben mentioned, is the matching brace highlighting, however this only takes effect when your cursor is adjacent to an opening or closing brace.