VS 2010 Javascript 匹配大括号/括号突出显示

发布于 2024-10-01 03:03:17 字数 282 浏览 0 评论 0原文

最近,我升级到 Visual Studio 2010,希望它能为 Javascript 提供与 C# 一样的匹配括号突出显示。

在我正在从事的项目中,我使用的 Javascript 多于 C#,而且我发现缺少括号匹配非常痛苦。

有没有什么方法可以为 Javascript 启用此功能?

2015 年 12 月编辑:现在我正在使用 Viasfora 扩展,它可以像 vim、emacs 一样执行彩虹大括号。每个括号对都依次赋予不同的颜色,因此您不必将插入符号放在括号旁边。在 vs 2013 中使用它。

Recently I upgraded to Visual Studio 2010 in the hope that it would provide matching bracket hightlighting for Javascript as it does for C#.

On the project I am working on I am doing more Javascript than C# and I finding the lack of bracket matching quite painful.

Is there any method of turning on this feature for Javascript too?

EDIT December 2015: Right now I am using Viasfora extension which does rainbow braces like vim, emacs. Each bracket pair has is successively given a different color, so you dont have to put the caret next to a bracket. Using it in vs 2013.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

后来的我们 2024-10-08 03:03:17

Microsoft 为此发布了 JScript 编辑器扩展。它还支持智能感知评论。在 jQuery vsdoc 中引用时,这非常有用。

屏幕截图

Microsoft has released JScript Editor Extensions for this. It also has support for intellisense comments. This works great when referencing in th jQuery vsdoc.

Screenshot

﹎☆浅夏丿初晴 2024-10-08 03:03:17

JS 增强

此扩展提供大纲和
匹配的大括号突出显示功能
适用于 Visual Studio JavaScript 和 CSS
编辑器。

适用于 JS/CSS 文件和 HTML
脚本/样式块。

大纲就像在 C# 编辑器中一样。它
概述了 {}、[] 和 #region 标记

alt text

JSEnhancements

This extension provides outlining and
matching braces highlighting features
for Visual Studio JavaScript and CSS
editor.

Works both in JS/CSS files and HTML
script/style blocks.

Outlining is like in C# editor. It
outlines {}'s, []'s and #region tags

alt text

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文