Here is the missing jQuery 1.4.2 vsdoc file!

UPDATE: With the release of v1.5.x of jQuery, Microsoft has updated the vsdoc files, so this post will probably no longer apply to you…

I’m a bit peeved that Microsoft has not published an official vsdoc file for jQuery version 1.4.2.  A while back, Scott Guthrie announced Microsoft would be supporting  jQuery so I expected they would keep up with new releases of jQuery.  I love Visual Studio’s IntelliSense feature and rely on it quite heavily.  And in order to get IntelliSense for jQuery functionality within Visual Studio, you need to have a companion *-vsdoc.js file that matches the version of  jQuery you are using.  Now I realize the changes between 1.4.1 and 1.4.2 are not that substantial, but come on… 1.4.2 has been released for several months already.  If you look at the website where you are supposed to download this file, you will see it is missing:

Microsoft's Ajax Content Delivery Network page

Read the rest of this entry »

Out with Clean Sources Plus, In with TreeTrim

If you are a fan of CleanSourcesPlus to clean up your Visual Studio build files, but have either had problems with it in a “modern” OS like Vista :) or just don’t like the command prompt popping up, I have a suggestion:  check out TreeTrim from Steve Dunn.

image

It adds a right click menu option to your selected folder in Windows Explorer to clean up your source code folder and it works quickly and silently.  By default it adds two menu choices:

image

The Clean source code works “out of the box” but the second one to clean, zip and email a working copy needs to be configured via its XML configuration file.  If you are like me and don’t email source code, then you can modify your registry to change or remove the menu option.  The registry key is located here:

HKEY_CLASSES_ROOT\Folder\shell\Clean, zip, and email a working copy of source code

I just removed that menu option on my system but the utility has a plugin model which allows you to customize commands that match your workflow.  Kudos to Steve Dunn!

Visual Studio 2008 broken Intellisense when debugging C# code

I was having an issue on my laptop where the Intellisense was broken when debugging C# code.  It is working for VB.NET code.  Here’s what it looks like for VB.NET when you start to type a variable name in the Watch window when in the debugger:

vb.net-intellisense-working

The problem is if I debug a C# project and try the same thing, I get nothing.  No Intellisense even using the Ctrl-Space keyboard shorcut.  Even the Immediate Window doesn’t work.

Since on my laptop I have ReSharper and a bunch of other add-ins installed, I chalked it up to some kind of conflict.  But today, I just rebuilt a desktop workstation and put a clean install of Visual Studio 2008 Team System with SP1 and nothing else installed.  Guess what… the problem still exists for me.  Some Google searches also didn’t help.  It doesn’t look like anyone else is having this issue, so I figured I better get a blog post about it in case you are in the same situation. I will update this post if I find a solution.

Please comment if you are having the same issue, or even better had the issue but found a fix!  :-)

Microsoft StyleCop

I just found out about a C# source code analysis tool from Microsoft called StyleCop.  You can download it from code.microsoft.com.

The tool’s description is as follows:

StyleCop analyzes C# source code to enforce a set of style and consistency rules. It can be run from inside of Visual Studio or integrated into an MSBuild project.

For all the details on the tool, check out the team’s blog that wrote it at http://blogs.msdn.com/sourceanalysis/.

Smart Paster Add-In for Visual Studio 2008

I had the need today to take a bunch of JavaScript code and paste it into an ASP.NET code behind file.  I was using the script as a basis for a custom script that was placed into the Page using the ClientScript.RegisterClientScriptBlock method.  I did some quick googling and found the Visual Studio Add-In called Smart Paster from Alex Papadimoulis that was just what I was looking for.  It wasn’t supplied in compiled form, but it was easy to build and deploy.  Just open the solution file, compile for Release mode and then copy the two files (from the bin folder) into your Addins folder:

  • SmartPaster2008.AddIn
  • SmartPaster2008.dll

Note: Your Addins folder is located by default at C:\Users\<username>\Documents\Visual Studio 2008\Addins

Simply restart VS2008 and now check out the new Right Click “Paste As” menu option:

smart-paster-example

There are some options via the Configure menu item too.  Very handy!

Follow

Get every new post delivered to your Inbox.