visual-studio Visual Studio Javascript 扩展功能比较

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4204032/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:46:35  来源:igfitidea点击:

Visual Studio Javascript extensions feature comparison

javascriptvisual-studio-2010visual-studio

提问by Robert Koritnik

I know I'm not the first one that would like to have #regionand brace matching support for Javascript. That's why I don't want to install one by one and see which one behaves better and which functionality it supports.

我知道我不是第一个想要#region为 Javascript提供和大括号匹配支持的人。这就是为什么我不想一个一个安装,看看哪个表现更好,支持哪些功能。

I would like to ask other fellow developers to provide feature comparisonfor these Visual Studio 2010 Javascript extensions:

我想请其他开发人员为这些 Visual Studio 2010 Javascript 扩展提供功能比较

And any issues you might've had with them. JSEnhancements seems to have the most downloads, but that still doesn't give me any ideas of its features compared to others.

以及您可能遇到的任何问题。JSEnhancements 似乎拥有最多的下载量,但与其他人相比,这仍然没有让我对它的功能有任何想法。

It's great that Microsoft provides some sort of integrated extension propagation and management, but there's an overwhelming amount of them and it's really hard to choose the right ones.

Microsoft 提供了某种集成的扩展传播和管理,这很棒,但是它们的数量太多了,而且很难选择正确的。

Other Javascript VS tools

其他 Javascript VS 工具

There are other tools as well that some of you may be using. If you find any of those particularly useful, please provide some information and I'll add it here to this list. It may help us lots.

还有其他工具,你们中的一些人可能正在使用。如果您发现其中任何一个特别有用,请提供一些信息,我会将其添加到此列表中。它可能对我们有很大帮助。

  • Javascript Parser- parses Javascript file and displays a tree structure of the code (closures/functions/...)
  • Javascript Parser- 解析 Javascript 文件并显示代码的树结构(闭包/函数/...)

采纳答案by Robert Koritnik

Since nobody answered my question let me give you some information about JSEnhancementsthat I installed in the end and am very verypleased with:

由于没有人回答我的问题,让我向您提供一些有关我最终安装的JSEnhancements 的信息,并对此感到非常满意:

  • it supports #regionin javascripts (// #region Name) as well as in CSS files (/* #region Name */) which is really great and they don't interfere with anything since they're part of comments
  • it highlights matching braces even though this is not always working, you have to position yourself correctly. Maybe it interferes with Power Tools that I also use...
  • 它支持#regionjavascripts ( // #region Name) 以及 CSS 文件 ( /* #region Name */) 这真的很棒而且它们不会干扰任何东西,因为它们是评论的一部分
  • 它突出显示匹配的大括号,即使这并不总是有效,但您必须正确定位自己。也许它会干扰我也使用的电动工具......

Sometimes you have to close+reopen the file for regions to start working. Sometimes writing them down doesn't recognise them.Newer versions work as expectedIt obviously works fine when you open the file and it parses it.

有时您必须关闭+重新打开文件才能开始工作。有时把它们写下来并不能识别它们。较新的版本按预期工作当您打开文件并解析它时,它显然工作正常。

Anyway. It's stable, works and I'm very pleased with this extension. You won't miss with its installation.

反正。它稳定、有效,我对这个扩展很满意。你不会错过它的安装。

回答by George Mavritsakis

Well there is one more tool for javascript "Javascript parser"which will parse your files and make a map on it. It is good but for me working with jquery it didn't help much.

好吧,还有一个用于 javascript “Javascript 解析器”的工具,它可以解析您的文件并在其上制作地图。这很好,但对我来说使用 jquery 并没有多大帮助。

Among the rest of the tools you mentioned, I was working too with JSenhancements for some time but I have switched to JScript Editor Extensions which I can tell seems more promising (highlight of current word, para comments etc).

在你提到的其他工具中,我也使用 JSenhancements 有一段时间了,但我已经切换到 JScript Editor Extensions,我可以说它看起来更有希望(当前单词的突出显示,段落注释等)。

It hasn't crashed since.

从那以后它就没有崩溃过。

回答by nabeelfarid

Try JScript Editor Extensionsby Microsoft for VS2010

试用Microsoft 为 VS2010 提供的JScript 编辑器扩展

回答by Aamir Jamal

JScript Editor Extensionsis much better than JSEnhancements. It will highlight matching braces, cold-folding the blocks, current word highlighting.

JScript Editor ExtensionsJSEnhancements好得多。它将突出显示匹配的括号,冷折叠块,突出显示当前单词。

Although it does not support #region name,

虽然不支持#region name

but you can use javascript curly brackets to enclose your code and place a comment above to know what you are making collapsible.

但是您可以使用 javascript 大括号括起您的代码并在上方放置注释以了解您正在制作的可折叠内容。

//My region
{
  //lines of code
  //lines of code
  //lines of code
}

these will collapse and don't appear to affect anything else. javascript just treats them as simple compound statement.

这些会倒塌,似乎不会影响其他任何东西。javascript 只是将它们视为简单的复合语句。

Further, I would also recommend Web Standards Updateas it also helped me with intellisense and validation.

此外,我还推荐Web 标准更新,因为它也帮助我进行智能感知和验证。

回答by abhilashca

Javascript Explorer- Though this will not region'ize your code, it sounds to be handy!

Javascript Explorer- 虽然这不会区域化您的代码,但听起来很方便!