Posted By: phunky_avocado | Sep 3rd, 2004 @ 11:11 AM
page 1 of 1
Comments: 5 | Views: 7448
phunky_avocado
phunky_avocado
Dude! It's the (grilled) cheese.
I searched the forum and did not find my answer.  So...

I have noticed  that Visual Studio .NET does not support intellisense for javascript (at least when the javascript code is in a separate *.js file).  Is there a way to turn it on?  I sure have not found it.

If not, then this is an overlooked feature that the VS developers need to address if ASP.NET is to be a complete solution.
phunky_avocado wrote:
I searched the forum and did not find my answer.  So...

I have noticed  that Visual Studio .NET does not support intellisense for javascript (at least when the javascript code is in a separate *.js file).  Is there a way to turn it on?  I sure have not found it.

If not, then this is an overlooked feature that the VS developers need to address if ASP.NET is to be a complete solution.


First of all if it is in a separate *.js file it should support intellisense to a certain level, and you are right it is not a complete solution and it would be awesome if they could support it.
JeremyJ
JeremyJ
The pioneers would be appalled!
It does support a limited intellisense.  Most of the time javascript is untyped so it doesn't know what to display for the intellisense.  It only really works when you specify the type.

Like: 
var someString = new String();

JeremyJ wrote:
It does support a limited intellisense.  Most of the time javascript is untyped so it doesn't know what to display for the intellisense.  It only really works when you specify the type.

Like: 
var someString = new String();


Or if you specify something that clearly is standard DOM object.

Try document. / window. to see what properties/methods it has.
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
cheong wrote:
Or if you specify something that clearly is standard DOM object.

Try document. / window. to see what properties/methods it has.

That doesn't work if the script is not in the html file.

It does have a few nice tricks, like if you do "var fso = new ActiveXObject("Scripting.FileSystemObject");" you'll get intellisense for that too.
page 1 of 1
Comments: 5 | Views: 7448
Microsoft Communities