This is must have extension for Java Script developers who are used to C#/VB code. I needed something like this badly. It would have been better if the shortcut key CTRL+ M + O to collapse outline worked with it too. It would have been awesome.
This is great a addition to my personal view of the "king of IDEs". It's one of those "why haven't other tools done this, its so mind numbingly obvious" pet peeves, that finally gets resolved...by Visual Studio no less!
I don't think I'll ever need any other dev ide - obviously based on the platforms I work in. One might say that means its "too Microsoft-ty"..perhaps, but with Javascript becoming 1st class dev platform, yes, even in the upcomming Windows 8, "simple" (obvious) tools like this in Visual Studio definitely earn developer buy in!
It's a wonderful addition in visual studio, I was using re-sharper 6.0 which has some nice Javascript re-factor feature, I definitely appreciate this kind of improvement and hope to see this extension with more and more feature in future versions.
For those people wanting a 'collapse all' feature. Simply press ctrl + m + a. This will collapse everything but if you've got 100's of JS functions like myself you'll find it useful!
Like regular .Net languages, does this extension support custom collapsible code blocks, e.g.
//#region My block
Code here
//#endregion
or
//region My Block
Code here
//endregion
function $(tag) {
/// <summary>
/// return:ele
/// </summary>
/// <param name="tag" type="str">标签名</param>
return document.getElementById(tag);
}
/// <reference path="tools.js"/>
Reference tools.js, the $ commentary has Chinese; Write $ ,you will see garbled;
if tools.js is not utf-8,it`s wrong.Now I can not set 'utf-8' with tool.js
$(tag)
return:ele
???K???
Is it possible to configure formatting? What I really want - the main reason that I installed this extension - is the ability to pretty print JSON files. When working with large-ish (e.g. 500 line) JSON files, they are always returned to me on one *long* line, which is impossible to read. There are other JSON pretty printers out there, but I would like to be able to do this in VS.
As it stands, opening a JSON file (which I have typed to be represented the same as JavaScript) and selecting Edit > Advanced > Format Document just results in spaces being inserted after commas and some braces.
The comment auto-complete ///<summary></summary> functionality worked immediately after I installed but has since stopped working. Are there any known conflicts with out extensions or ReSharper?
I have the JScript Editor as well as Javascript Parser, and ReSharper installed.
I saw the "fix" to make the para extension make intellisense case sensitive - I find this horribly annoying. Without the Para extension installed, if I have a dom element, I can type domEl.parentn and it'll match on parentNode so I can just hit Tab to complete. As someone that uses the MicrosoftAjax library, it is very time consuming to have to go back and constantly fix typos to get auto complete to work (I typically end up typing Sys.UI.DOm the first time - which makes it not find a match).
Various crashes all the time, but this is reproducable using Teleriks JustCode in my aspx to generate the asp.net event handlers in the code behind (something new in an internal build).
Reliably crashes VS2010
<entry>
<record>554</record>
<time>2011/07/05 18:13:16.667</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.NullReferenceException: Object reference not set to an instance of an object.
 at JScriptPowerTools.Shared.VsServiceManager.GetService(ITextBuffer buffer, Guid serviceGuid)
 at JScriptPowerTools.Shared.VsServiceManager.GetScriptColorizer(ITextBuffer buffer)
 at JScriptOutliningExtension.OutliningTaggerProvider.CreateTagger[T](ITextBuffer buffer)
 at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)</description>
</entry>