« Why Silverlight will (!!) succeed | ^ Main | Mix '07 Free Stuff »
Visual Studio + JS = Pure Sweetness
I’ve raved about VS since I started using it. Nothing has changed. ;-)
I just left a session where the presenter talked about all of the upcoming VS changes. I’ll run a couple down real quick.
- MUCH better CSS support. This seems to be taken from Expression Web in many ways (which is fine, they own both). ;-)
- You can select the version of the .NET Runtime you want to use (3.0, 3.5, etc).
- Javascript Support. This one needs a much bigger block. ;-)
Javascript Support
Intellisense. That’s all I need to and have to say. Inside your ASPX page (or whatever page type), you can type something like this:
var myvar = 1;
myvar.
By typing “myvar.” you get intellisense for a number. NICE. That’s cool and all but this is phat.
var myvar = 1;
myvar.
myvar = “hello world”;
myvar.
The first “myvar.” (essentially, line 2) will show intellisense for a number. Guess what the second one shows. ……………………………………………………….go ahead…guess! (lol). It shows intellisense for a STRING. Hrmmmmmmmmmmmmmmmmm…that’s kind nice.
What about having code in multiple JS files? Make a reference comment to the file(s) in the JS file of your choice.
///var data = getMyDataFromMyJSFile();
“data.” would show intellisense based on the type of return value “getMyDataFromMyJSFile()” has in the comments. How do you supply a return type? Easy. I’ll even show you a summary block.
function myFunction(date, firstname){
///This function does nothing for now
///
}
Now if I call “myFunction().” (notice the period after the parens) it would show intellisense for a string. SWEET!
They also showed breakpoints and a few other things in JS. So, VS is looking QUITE good for JS development, at this point. ;-)
Gotta jet…in here with Brad Abrams watching a Video preso.
Posted by John C. Bland II on April 30, 2007 4:34 PM | Permalink
TrackBack
TrackBack URL for this entry:
http://mt.katapultmedia.com/mt-tb.cgi/259
Comments
Read more (and see screenshots) of the JS support over @ ScottGu’s blog spot here.
Posted by: John C. Bland II | April 30, 2007 5:22 PM



