<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>JScript Blog : JScript Authoring</title><link>http://blogs.msdn.com/jscript/archive/tags/JScript+Authoring/default.aspx</link><description>Tags: JScript Authoring</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>JScript errors as warnings in Visual Studio 2008 RTM</title><link>http://blogs.msdn.com/jscript/archive/2007/12/31/jscript-errors-as-warnings-in-visual-studio-2008-rtm.aspx</link><pubDate>Mon, 31 Dec 2007 09:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6913679</guid><dc:creator>rneela</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/jscript/comments/6913679.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jscript/commentrss.aspx?PostID=6913679</wfw:commentRss><wfw:comment>http://blogs.msdn.com/jscript/rsscomments.aspx?PostID=6913679</wfw:comment><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Now &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/somasegar/archive/2007/11/19/visual-studio-2008-and-net-framework-3-5-shipped.aspx" mce_href="http://blogs.msdn.com/somasegar/archive/2007/11/19/visual-studio-2008-and-net-framework-3-5-shipped.aspx"&gt;&lt;FONT face=Calibri color=#800080 size=3&gt;Visual Studio 2008&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt; code named Orcas is out of door with incredible features. T&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;he most highly anticipated feature of this release is JScript Authoring Services which includes &lt;A href="http://weblogs.asp.net/scottgu/archive/2007/06/21/vs-2008-javascript-intellisense.aspx" mce_href="http://weblogs.asp.net/scottgu/archive/2007/06/21/vs-2008-javascript-intellisense.aspx"&gt;&lt;FONT color=#800080&gt;JavaScript Intellisense&lt;/FONT&gt;&lt;/A&gt; and &lt;A href="http://blogs.msdn.com/jscript/archive/2007/08/03/jscript-syntax-check-in-visual-web-developer-2008-beta2.aspx" mce_href="http://blogs.msdn.com/jscript/archive/2007/08/03/jscript-syntax-check-in-visual-web-developer-2008-beta2.aspx"&gt;&lt;FONT color=#800080&gt;JavaScript Syntax Checking&lt;/FONT&gt;&lt;/A&gt;. &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;In the final version of Visual Studio 2008, with default profile settings VS shows all JScript/JavaScript syntax errors as warnings and warnings as messages because of which customer will end up unnoticed JScript Syntax Checking feature.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;To view JScript Errors as Errors in Error List window enable below option from Options dialog of Visual Studio &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
&lt;P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN lang=EN style="FONT-FAMILY: 'Arial','sans-serif'; mso-ansi-language: en; mso-fareast-font-family: arial"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;-&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;&lt;FONT face=Calibri&gt;Launch Options dialog by clicking on Tool &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN style="FONT-FAMILY: wingdings; mso-ansi-language: en; mso-bidi-font-family: arial; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri; mso-char-type: symbol; mso-symbol-font-family: wingdings"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: wingdings"&gt;à&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;&lt;FONT face=Calibri&gt; Options menu &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;
&lt;P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN lang=EN style="FONT-FAMILY: 'Arial','sans-serif'; mso-ansi-language: en; mso-fareast-font-family: arial"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;-&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;&lt;FONT face=Calibri&gt;Expand Text Editor &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN style="FONT-FAMILY: wingdings; mso-ansi-language: en; mso-bidi-font-family: arial; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri; mso-char-type: symbol; mso-symbol-font-family: wingdings"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: wingdings"&gt;à&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;&lt;FONT face=Calibri&gt; HTML &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN style="FONT-FAMILY: wingdings; mso-ansi-language: en; mso-bidi-font-family: arial; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri; mso-char-type: symbol; mso-symbol-font-family: wingdings"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: wingdings"&gt;à&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;&lt;FONT face=Calibri&gt; Validation &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;
&lt;P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN lang=EN style="FONT-FAMILY: 'Arial','sans-serif'; mso-ansi-language: en; mso-fareast-font-family: arial"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;-&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Clear Show errors “as warnings (JScript)” check box&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="mso-bidi-font-family: arial; mso-no-proof: yes"&gt;&lt;SHAPETYPE id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;STROKE joinstyle="miter"&gt;&lt;/STROKE&gt;&lt;FORMULAS&gt;&lt;F eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/F&gt;&lt;F eqn="sum @0 1 0"&gt;&lt;/F&gt;&lt;F eqn="sum 0 0 @1"&gt;&lt;/F&gt;&lt;F eqn="prod @2 1 2"&gt;&lt;/F&gt;&lt;F eqn="prod @3 21600 pixelWidth"&gt;&lt;/F&gt;&lt;F eqn="prod @3 21600 pixelHeight"&gt;&lt;/F&gt;&lt;F eqn="sum @0 0 1"&gt;&lt;/F&gt;&lt;F eqn="prod @6 1 2"&gt;&lt;/F&gt;&lt;F eqn="prod @7 21600 pixelWidth"&gt;&lt;/F&gt;&lt;F eqn="sum @8 21600 0"&gt;&lt;/F&gt;&lt;F eqn="prod @7 21600 pixelHeight"&gt;&lt;/F&gt;&lt;F eqn="sum @10 21600 0"&gt;&lt;/F&gt;&lt;/FORMULAS&gt;&lt;PATH o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/PATH&gt;&lt;LOCK aspectratio="t" v:ext="edit"&gt;&lt;/LOCK&gt;&lt;/SHAPETYPE&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;&lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;A href="http://blogs.msdn.com/blogfiles/jscript/WindowsLiveWriter/JScripterrorsaswarningsinVisualStudio200_A967/Options.png" mce_href="http://blogs.msdn.com/blogfiles/jscript/WindowsLiveWriter/JScripterrorsaswarningsinVisualStudio200_A967/Options.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=147 alt=Options src="http://blogs.msdn.com/blogfiles/jscript/WindowsLiveWriter/JScripterrorsaswarningsinVisualStudio200_A967/Options_thumb.png" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jscript/WindowsLiveWriter/JScripterrorsaswarningsinVisualStudio200_A967/Options_thumb.png"&gt;&lt;/A&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;SPAN lang=EN style="mso-ansi-language: en; mso-bidi-font-family: arial"&gt;This has been added after VS 2008 Beta2 after considering customer feedback. In &lt;/SPAN&gt;&lt;SPAN lang=EN style="mso-ansi-language: en"&gt;Visual Studio 2005 and Visual Web Developer Express 2005 all markup and CSS validation related issues such as unsupported tags and attributes are shown as errors in Error List. Few like it since validation errors encourage standard compliance while few didn't want validation errors to show up in Error list as these errors are browser errors. The same applies for JScript errors in VS 2008. This has been addressed by adding above option in the final version of Visual Studio 2008. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN lang=EN style="mso-ansi-language: en"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;A href="http://blogs.msdn.com/blogfiles/jscript/WindowsLiveWriter/JScripterrorsaswarningsinVisualStudio200_A967/JScript_errors_As_warning.png" mce_href="http://blogs.msdn.com/blogfiles/jscript/WindowsLiveWriter/JScripterrorsaswarningsinVisualStudio200_A967/JScript_errors_As_warning.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=208 alt=JScript_errors_As_warning src="http://blogs.msdn.com/blogfiles/jscript/WindowsLiveWriter/JScripterrorsaswarningsinVisualStudio200_A967/JScript_errors_As_warning_thumb.png" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/jscript/WindowsLiveWriter/JScripterrorsaswarningsinVisualStudio200_A967/JScript_errors_As_warning_thumb.png"&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6913679" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jscript/archive/tags/JScript+Authoring/default.aspx">JScript Authoring</category><category domain="http://blogs.msdn.com/jscript/archive/tags/VWD/default.aspx">VWD</category><category domain="http://blogs.msdn.com/jscript/archive/tags/Javascript+Syntax+Checking/default.aspx">Javascript Syntax Checking</category><category domain="http://blogs.msdn.com/jscript/archive/tags/Visual+Studio+2008/default.aspx">Visual Studio 2008</category><category domain="http://blogs.msdn.com/jscript/archive/tags/Orcas/default.aspx">Orcas</category></item><item><title>Javascript Intellisense and Coloring Issues in VS 2008 Beta 2</title><link>http://blogs.msdn.com/jscript/archive/2007/09/24/javascript-intellisense-and-coloring-issues-in-vs-2008-beta-2.aspx</link><pubDate>Mon, 24 Sep 2007 22:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5105399</guid><dc:creator>Sameerch</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/jscript/comments/5105399.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jscript/commentrss.aspx?PostID=5105399</wfw:commentRss><wfw:comment>http://blogs.msdn.com/jscript/rsscomments.aspx?PostID=5105399</wfw:comment><description>&lt;P&gt;We have come across a couple of installation issues in VS 2008 Beta 2 which broke the new Javascript functionalities in certain scenarios.&amp;nbsp; While a workaround has already been provided in the &lt;A class="" title="Visual Studio 2008 Express Edition 2 ReadMe" href="http://download.microsoft.com/download/D/D/1/DD18043A-FE86-4F57-AC22-791B30E6F04B/ExpressReadme.htm#Visual%20Web%20Developer%20Express%20Edition" mce_href="http://download.microsoft.com/download/D/D/1/DD18043A-FE86-4F57-AC22-791B30E6F04B/ExpressReadme.htm#Visual%20Web%20Developer%20Express%20Edition"&gt;online refresh of the ReadMe text&lt;/A&gt;, I thought I would also put it down here in case any of you hit the problem.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Issues&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We faced two installation issues which broke Jscript functionality in VS 2008 Beta 2&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Uninstallation of Silverlight Tools for Visual Studio 2008 Beta 1 removes the Jscript Authoring DLL&lt;/LI&gt;
&lt;LI&gt;Installation&amp;nbsp; of Team Explorer Beta 2 corrupts the registration of Jscript&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;In either case, you dont get to see Javascript intellisense, syntax errors, and javascript coloring does not work.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Workaround&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The recommended workaround for both the issues is to Repair the Visual Studio installation by running setup again.&amp;nbsp; The first&amp;nbsp;issue can be avoided by uninstalling SL Tools for VS Beta1 before installing VS 2008 Beta 2.&amp;nbsp; The second issue can also be fixed if you dont mind fiddling with the registry.&amp;nbsp; See the &lt;A class="" href="http://blogs.msdn.com/webdevtools/archive/2007/07/30/workaround-for-beta-2-javascript-intellisense-and-colorization-issue.aspx" mce_href="http://blogs.msdn.com/webdevtools/archive/2007/07/30/workaround-for-beta-2-javascript-intellisense-and-colorization-issue.aspx"&gt;blog post here for details&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Sameer&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5105399" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jscript/archive/tags/JScript+Intellisense/default.aspx">JScript Intellisense</category><category domain="http://blogs.msdn.com/jscript/archive/tags/JScript+Authoring/default.aspx">JScript Authoring</category><category domain="http://blogs.msdn.com/jscript/archive/tags/Javascript/default.aspx">Javascript</category><category domain="http://blogs.msdn.com/jscript/archive/tags/VWD/default.aspx">VWD</category></item><item><title>JScript Syntax Check in Visual Web Developer 2008 Beta2</title><link>http://blogs.msdn.com/jscript/archive/2007/08/03/jscript-syntax-check-in-visual-web-developer-2008-beta2.aspx</link><pubDate>Fri, 03 Aug 2007 12:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4205361</guid><dc:creator>don.raman</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/jscript/comments/4205361.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jscript/commentrss.aspx?PostID=4205361</wfw:commentRss><wfw:comment>http://blogs.msdn.com/jscript/rsscomments.aspx?PostID=4205361</wfw:comment><description>&lt;P&gt;&lt;A class="" title="Click here to download" href="http://msdn2.microsoft.com/en-us/express/future/bb421473.aspx" target=_blank mce_href="http://msdn2.microsoft.com/en-us/express/future/bb421473.aspx"&gt;Visual Web Developer 2008 Beta2&lt;/A&gt; got announced some days back. Lots of authoring enhancement has been made to this release so far as JScript is considered. Sameer already blogged about much better intellisense support in this release. I would like to point out that we also had a brand new support for Syntax Checking with this release. Syntax Checking is a very helpful feature and helps a JScript developer to find out the errors/warnings in his code at design time. The goal was to make life of a JScript developer a lot easier. We feel this is going to make a very good impact on the developers.&lt;/P&gt;
&lt;P&gt;Let's say while writing the code I defined a variable twice. Isn't it cool the editor catching up the mistake for me? This is exactly what happens. Look at the snapshot below:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="WIDTH: 268px; HEIGHT: 150px" height=150 src="http://farm2.static.flickr.com/1136/995039181_7aaeb1ea39_o.jpg" width=268 mce_src="http://farm2.static.flickr.com/1136/995039181_7aaeb1ea39_o.jpg"&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;As one can see the moment the user makes a mistake, squiggles are shown and on taking the mouse over the squiggle the error/warning is displayed. User is saved from all the hassles of actually running the code to find out all the annoying errors/warnings. All the errors/warnings get listed down even in the error window as shown below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG style="WIDTH: 500px; HEIGHT: 127px" height=127 src="http://farm2.static.flickr.com/1419/995987866_d991071f4f.jpg" width=500 mce_src="http://farm2.static.flickr.com/1419/995987866_d991071f4f.jpg"&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;This gives a detailed error/warning message and double clicking actually takes you to the line number.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Some of the other facts I would like to list are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A syntax error or warning does not stop other authoring features like syntax coloring and intellisense to stop working. The parser used is a recovery parser which throws off/ignores bad tokens and continue giving authoring support.&lt;/LI&gt;
&lt;LI&gt;This only catches the error/warning detectable by parser. A runtime error will not be detected by this and you will get the error running the application.&lt;/LI&gt;
&lt;LI&gt;The syntax checking is also available in the stand alone JScript file added to your web project.&lt;/LI&gt;
&lt;LI&gt;This feature is also available in the Express edition of Visual Web Developer 2008.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;So go ahead and start using the new Beta2 available and give your feedback to us.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Don Raman&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Senior Test Lead&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4205361" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jscript/archive/tags/JScript+Authoring/default.aspx">JScript Authoring</category><category domain="http://blogs.msdn.com/jscript/archive/tags/VWD/default.aspx">VWD</category></item><item><title>JScript Authoring Support in Visual Studio "Orcas" - Part II</title><link>http://blogs.msdn.com/jscript/archive/2007/03/02/jscript-authoring-support-part-2.aspx</link><pubDate>Fri, 02 Mar 2007 16:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1526999</guid><dc:creator>Sameerch</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/jscript/comments/1526999.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jscript/commentrss.aspx?PostID=1526999</wfw:commentRss><wfw:comment>http://blogs.msdn.com/jscript/rsscomments.aspx?PostID=1526999</wfw:comment><description>&lt;P mce_keep="true"&gt;Last month, I talked about the new Intellisense for the JScript language.&amp;nbsp; Well, the &lt;A class="" title="March CTP" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b533619a-0008-4dd6-9ed1-47d482683c78&amp;amp;DisplayLang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b533619a-0008-4dd6-9ed1-47d482683c78&amp;amp;DisplayLang=en"&gt;March CTP&lt;/A&gt; is available for you to check out this feature.&amp;nbsp;&amp;nbsp;Jeff from the Web Tools team, our partner in implementing this feature,&amp;nbsp;has also published &lt;A class="" title="a very nice post" href="http://blogs.msdn.com/webdevtools/archive/2007/03/02/jscript-intellisense-in-orcas.aspx" mce_href="http://blogs.msdn.com/webdevtools/archive/2007/03/02/jscript-intellisense-in-orcas.aspx"&gt;a very nice post&lt;/A&gt;&amp;nbsp;that gives an aerial tour of the intellisense features.&amp;nbsp; That should really get you started on this.&lt;/P&gt;
&lt;P mce_keep="true"&gt;I said I will talk about script references in the next blog, but Jeff's blog sufficiently covers most parts of it.&amp;nbsp; So, I will leave that for another day.&amp;nbsp; Meanwhile, download the CTP and give us your feedback.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1526999" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jscript/archive/tags/JScript+Intellisense/default.aspx">JScript Intellisense</category><category domain="http://blogs.msdn.com/jscript/archive/tags/JScript+Authoring/default.aspx">JScript Authoring</category></item><item><title>Watch out for JScript Authoring Support in Visual Studio "Orcas" - Part I</title><link>http://blogs.msdn.com/jscript/archive/2007/02/10/jscript-authoring-support-in-orcas.aspx</link><pubDate>Sat, 10 Feb 2007 22:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1526884</guid><dc:creator>Sameerch</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/jscript/comments/1526884.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jscript/commentrss.aspx?PostID=1526884</wfw:commentRss><wfw:comment>http://blogs.msdn.com/jscript/rsscomments.aspx?PostID=1526884</wfw:comment><description>&lt;P&gt;Hello, I am Sameer Chabungbam.&amp;nbsp; For living, I work as a Program Manager in the JScript team at Microsoft.&amp;nbsp; This team, among other things, has been working for sometime now to incorporate a good design time support for the JScript language in Visual Studio Orcas release.&amp;nbsp; I would be writing about what we have been doing for the last few months.&amp;nbsp; This is the first, and here, I would talk about &lt;A class="" title=Intellisense href="http://msdn2.microsoft.com/en-us/library/hcw1s69b(VS.80).aspx" mce_href="http://msdn2.microsoft.com/en-us/library/hcw1s69b(VS.80).aspx"&gt;Intellisense&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Enhanced Intellisense for JScript&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Up until now, Intellisense support for Jscript in Visual Studio has been very limited.&amp;nbsp; With the Orcas release, Visual Studio would provide smarter and better intellisense.&amp;nbsp; These include:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Expanded Global list&lt;/LI&gt;
&lt;LI&gt;Inferencing&lt;/LI&gt;
&lt;LI&gt;Script References&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Global List has been expanded to include keywords and&amp;nbsp;local variables.&amp;nbsp; The list would also take care of providing the right scoping.&amp;nbsp; That is, it would present only the symbols which are present in the current scope.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Inferencing&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The best feature, in my opinion, about the new Intellisense support is that we have a lot smarter intellisense.&amp;nbsp; It is now able to infer the correct types in many scenarios.&amp;nbsp; Consider the following examples.&lt;/P&gt;
&lt;P&gt;An example of inference through assignments:&lt;/P&gt;&lt;PRE&gt;    var d1, d2, d3;

    d1 = new Date();
    exec_task();
    d2 = new Date();

    d3 = d2 - d1;
    d3.
&lt;/PRE&gt;
&lt;P&gt;At this point, intellisense completion list would correctly contain the members of a number.&lt;/P&gt;
&lt;P&gt;Here is an example of inference through function return values:&lt;/P&gt;&lt;PRE&gt;    function compute_time(exec_task)
    {
        var d1, d2, d3;

        d1 = new Date();
        exec_task();
        d2 = new Date();

        d3 = d2 - d1;
        return d3;
    }

    compute_time(myfunc).
&lt;/PRE&gt;
&lt;P&gt;Again, here, we get a smarter intellisense for number.&amp;nbsp; There are many scenarios in which we get better intellisense.&amp;nbsp; Do download the next CTP release of Visual Studio and check out this new intellisense for JScript.&lt;/P&gt;
&lt;P mce_keep="true"&gt;In the next part, I would write about the Intellisense through Script references.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1526884" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jscript/archive/tags/JScript+Intellisense/default.aspx">JScript Intellisense</category><category domain="http://blogs.msdn.com/jscript/archive/tags/JScript+Authoring/default.aspx">JScript Authoring</category></item></channel></rss>