Intellisense auto-completes jQuery $ with _$getActiveXObject - visual-studio-2010

I'm using Visual Studio 2012 RC. Every time I type $ and then proceed with typing the ( to start a jQuery selector, Visual Studio is unhelpfully auto completing the statement with _$getActiveXObject which is turning me into a screaming lunatic.
Is there a way to disable this? I can't imagine that _$getActiveXObject would be used more than jQuery, which baffles me why this would be the default intellisense behavior.

Visual Studio 2012 has an updated IntelliSense file for jQuery. If you retrieve jQuery via NuGet, you should automatically get it.

Related

Getting TypeScript in Visual Studio 2015 to auto-complete on enter and auto-complete paranthesies

I just started using TypeScript, and was using the TypeScript Playground here: https://www.typescriptlang.org/play/index.html
It has decent intellisense, and autocompletes on enter, as well as auto-completes parenthesis and brackets.
However, once I decided to use it in VS 2015, I noticed that enter no longer selects the suggested dropdown, and neither parenthesis nor brackets are auto-added. When programming in C#, these features work out great.
How do I enable this behavior in Visual Studio? I would assume that if it exists on the website, it would definitely exist in a full blown IDE like VS.
Can I enable similar refactoring features to C#, like automatic variable/property renaming across the project if I change a variable name? Using Ctrl-R Ctrl-R to rename a variable doesn't seem to work, it only changes the line I'm on.
Edit:
VS 2015 Update 3
Typescript for VS 2015 v 1.8.6.0
Typescript for VS 2015 v 2.0
Edit2: Upgraded to the TS 2.0 VS plugin. The Automatic Brace Completion checkbox is no longer greyed out, yet enabling it does not seem to have an effect on brace completion.
Edit3: These features are in Visual Studio Code.
TypeScript 2.0.2 RC for Visual Studio 2015 — August 30, 2016 fixed this issue. You can download here.
Click Details to see list of all the versions.
Make sure you have the latest TypeScript VS extension installed.

How to make the Visual Studio 2015 text templating security warning go away?

This problem is making me mad.
We have a set of projects that rely on T4 templates to generate code for a bunch of DSLs.
Every time I try to transform one of these T4 templates in Visual Studio 2015 I get this window, the security warning:
I have set the "Do not show this message again".
I have set the VS option "Text Templating | Show Security Message" to false.
Every time I restart Visual Studio 2015 and transform the first template the message pops up again.
This does not happen in Visual Studio 2013.
Some hints that may have something to do with this:
The actual text template that is called is published by a VS extension that is installed in the admin extensions directory ($ProgramFiles$\Microsoft Visual Studio 12.0\Common7\IDE\Extensions).
We are using our own custom code generator (that derives from TemplatedCodeGenerator).
Any ideas?
I have found the solution to this one a little by chance.
The problem was that the assembly containing the custom code generator was referencing Microsoft.VisualStudio.TextTemplating.VSHost.12.0 instead of version 14.0 as for Visual Studio 2015.
Oddly enough the transformation did not complain about the problem with the reference but completely ignored the VS option to stop showing the security dialog (may be because it was reading it from the wrong place?).
After correcting the reference, the problem never happened again.

Typescript Snippets on Visual Studio

I would like to know if any of you guys know a way to enable the following feature on Visual Studio (either a hidden setting or an extension):
I'm used to javascript development on Visual Studio where if I type:
"if" on the text editor, it shows me a popup ("code snippet for an if statement"). Pressing ENTER the following is added:
if (true) {
}
This is not available for typescript files!
These snippets are really useful and this is just a simple example
Another basic feature I'm missing is "braces auto completion".
I am not sure if there is a way to enable it or not, but really would like these basic features available.
This also applies for the newly released Visual Studio 2015. On the other hand, Visual Studio Code seems to handle it very well.
There is an issue on Github about being able to use Javascript snippets in Typescript files, and to make the Snippet Code Manager being able to recognize Typescript as a Language.
https://github.com/Microsoft/TypeScript/issues/312

IntelliSence completion with () - For Resharper user on vanilla Visual Studio 2012 Express

Im a resharper user who has landed on VS 2012 express without r# loaded.
Basic VS intelliSense is working. Using ctrl-space i can do something like
Process.GetProcesses
but what about the method parenthesis ()
Process.GetProcesses()
is what I was hoping to achieve. Is this Resharper only ?
I have looked in tools=>Options=>Text Editor=>C# intellisense
but cant find an option to get completion working id like.
even entering ( doesnt add closing ).
Is this a case of get over it ?
Im back on my machine now...
Looks like the feature is only a Resharper option

how to stop the showing error message in visual studio for jscript in visual studio 2010

i am using IE 8 for testing the javascript i write for my web-application. i use something who are not unknown for IE 8 so they give me error each time
"Microsoft JScript runtime error: Object doesn't support this property or method".
are their any way to stop this error showing in visual studio when i debug the javascript.
when i refresh the page they give me error in visual studio. well i not want to see anything like showing error in visual studio.
so how i can disable the showing error for javascript in visual studio even i need to work with javascript breakpoint and trackpoint.
Unless I missed something, there's only three things I can think of:
Fix the bug
Debug in IE with the javascript debugger, instead of Visual Studio
Fix the bug
I recommend 1 or 3 ;)

Resources