<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fordie's Blog &#187; visual studio</title>
	<atom:link href="http://fordie.co.uk/category/technical/software/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://fordie.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 10 May 2011 17:58:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>jQuery intellisense in Visual Studio 2008 &amp; Dreamweaver</title>
		<link>http://fordie.co.uk/2008/11/13/jquery-intellisense-in-visual-studio-2008-dreamweaver/</link>
		<comments>http://fordie.co.uk/2008/11/13/jquery-intellisense-in-visual-studio-2008-dreamweaver/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 20:00:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[code hints]]></category>
		<category><![CDATA[intellisense]]></category>

		<guid isPermaLink="false">http://fordie.co.uk/?p=136</guid>
		<description><![CDATA[jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML it&#8217;s my weapon of choice when it comes to adding client side interactions to a site. It has rapidly gained popularity with web developers and designers &#8211; now software manufacturers are starting to take note with industry leaders like Adobe &#38; Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jquery.com/">jQuery</a> is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML it&#8217;s my weapon of choice when it comes to adding client side interactions to a site.</p>
<p>It has rapidly gained popularity with web developers and designers &#8211; now software manufacturers are starting to take note with industry leaders like Adobe &amp; Microsoft adding tools to their web development environments to help make jQuery development even quicker.</p>
<h2>Microsoft Visual Studio 2008</h2>
<p>I spoke previously about getting <a href="/index.php/2008/03/18/jquery-intellisense-in-visual-studio-2008/">Jquery intellisense in Visual Studio</a> 2008. Since then Scott Guthrie announced that <a href="http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx"><q>that Microsoft will be shipping jQuery with Visual Studio going forward</q></a> and then just yesterday I spotted <a href="http://blogs.msdn.com/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx">this article</a> on the Visual Web Developer Team Blog with interesting updates to VS2008&#8242;s jQuery intellisense. The best development from my point of view is the ability to get code hints in your aspx &amp; master pages, not just your .js files.</p>
<p>In order to take advantage of these improvements you&#8217;ll first need to install <a href="http://msdn.microsoft.com/en-gb/vstudio/cc533448.aspx">Visual Studio 2008 Service Pack 1</a>and this <a href="http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736">hot fix</a>.</p>
<p>Next download the <a href="http://code.jquery.com/jquery-1.2.6-vsdoc.js">jQuery IntelliSense documentation file</a> and save it in to your website in (probably a good idea to put it in the same folder as your jQuery file).</p>
<p>To add jQuery intellisense to a javascript file simply add this line to the top of the file:</p>
<pre name="code" class="xhtml:firstline[1]">
  /// &lt;reference path="jquery-1.2.6-vsdoc.js"/&gt;
</pre>
<p>To add it to aspx &amp; master pages do add the following lines to the head of your document.</p>
<pre name="code" class="xhtml:firstline[1]">
    &lt;% if (false)
       { %&gt;
        &lt;script src="~/[PATH_TO_REFERENCE_FILE]/jquery-1.2.6-vsdoc.js" type="text/javascript"&gt;
        &lt;/script&gt;
    &lt;%} %&gt;
</pre>
<h3>Points to note:</h3>
<ul>
<li>The &#8220;if (false)&#8221; statement will prevent the link to the reference file being rendered at runtime.  Microsoft are planning to release a hotfix to automatically search for the vsdoc file if the javascript file has a reference path in it meaning that these links in the head will become redundant.</li>
<li>If you are using aspnet&#8217;s MVC framework you need to ensure that your path to the reference file starts with a tilde otherwise VS will not find the reference file.</li>
<li>dding a link to the reference to a master page means all aspx pages that inherit that master page will have intellisense enabled.</li>
</ul>
<h2>Adobe Dreamweaver</h2>
<h3>CS4</h3>
<p>Adobe have just released <a href="http://www.adobe.com/products/dreamweaver/">Dreamweaver CS4</a> which also has support for jQuery code hinting. Adobe have taken a different approach to Microsoft, they use &#8220;introspection&#8221; to parse any javaScript files you have linked to your page and provide code hints.</p>
<p>This seems to work pretty well, and even handles chaining. However, I do have a couple of minor gripes. Firstly as soon as I typed &#8220;$(&#8221; dreamweaver told me I had a syntax error which really confused me, in the end I realised that just had to keep typing and DW would eventually figure out what I was doing. The other thing is, as a VS user I&#8217;m used to to code hits appearing strait away, in DW you have to press Ctrl + [space]. It&#8217;s not a big deal but would take some getting used to.</p>
<h3>Older Vesions</h3>
<p>Users of older versions of Dreamweaver <a href="http://xtnd.us/dreamweaver/jquery">this extension</a> from Chris Charlton adds excellent code hints for jQuery &amp;<a href="http://ui.jquery.com/"> jQuery UI</a> and what&#8217;s more it prompts you as soon as you hit &#8220;.&#8221; good work Chris!</p>
]]></content:encoded>
			<wfw:commentRss>http://fordie.co.uk/2008/11/13/jquery-intellisense-in-visual-studio-2008-dreamweaver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery Intellisense in Visual Studio 2008</title>
		<link>http://fordie.co.uk/2008/03/18/jquery-intellisense-in-visual-studio-2008/</link>
		<comments>http://fordie.co.uk/2008/03/18/jquery-intellisense-in-visual-studio-2008/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 17:16:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[intellisense]]></category>

		<guid isPermaLink="false">http://fordie.co.uk/index.php/2008/03/18/jquery-intellisense-in-visual-studio-2008/</guid>
		<description><![CDATA[We&#8217;ve started using jQuery quite heavily to power our javascript widgets &#8211; without exception everyone who&#8217;s used it here has had their own little jQuery epiphany. It&#8217;s quite funny to watch, people tend to resist it to start with (particularly the hardcore coders) &#8211; but when they use it for a while and see how [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/images/blog/intel.jpg" alt="intellisense in action" style="margin: 0pt 0.5em 0.5em 0pt; float: left" height="207" width="300" />We&#8217;ve started using <a href="http://jquery.com/">jQuery</a> quite heavily to power our javascript widgets &#8211; without exception everyone who&#8217;s used it here has had their own little jQuery epiphany. It&#8217;s quite funny to watch, people tend to resist it to start with (particularly the hardcore coders) &#8211; but when they use it for a while and see how much pain it can save you they soon come round.</p>
<p>One thing that was missing until now though was a way of getting jQuery intellisense in VS2008.  <a href="http://icanhaz.com/intellisense">Yesterday I spotted this article by  James Hart</a> which describes how this missing functionality can be be added. You need to make sure that you have this <a href="http://tinyurl.com/38vn68">Visual Studio 2008 Hotfix</a> installed then follow the instructions in James&#8217; article and as if by magic you&#8217;ll have intellisense for your jQuery code! This has gone down a treat here and looks set to make life an awful lot easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://fordie.co.uk/2008/03/18/jquery-intellisense-in-visual-studio-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

