JavaScript - Formatting Preferences?Is there a way to change the JavaScript source formatting preferences? I'm trying to write a class in javascript using the 'this' style, but the JS formatter is screwing with my delegate code.<br/> <br/> I've looked in Tools &gt; Options &gt; Editors, but haven't found anything related to JavaScript.<br/> For now I'm just gonna use an external editor.© 2009 Microsoft Corporation. All rights reserved.Thu, 16 Jul 2009 13:22:08 Z07f3e25d-7b6e-487e-a510-12798b5b949fhttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#07f3e25d-7b6e-487e-a510-12798b5b949fhttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#07f3e25d-7b6e-487e-a510-12798b5b949feacousineauhttp://social.msdn.microsoft.com/Profile/en-US/?user=eacousineauJavaScript - Formatting Preferences?Is there a way to change the JavaScript source formatting preferences? I'm trying to write a class in javascript using the 'this' style, but the JS formatter is screwing with my delegate code.<br/> <br/> I've looked in Tools &gt; Options &gt; Editors, but haven't found anything related to JavaScript.<br/> For now I'm just gonna use an external editor.Thu, 02 Jul 2009 17:15:25 Z2009-07-02T17:15:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#2bbfbcab-4eb9-4e5d-92f2-20f1a89f689ahttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#2bbfbcab-4eb9-4e5d-92f2-20f1a89f689aYiChun Chenhttp://social.msdn.microsoft.com/Profile/en-US/?user=YiChun%20ChenJavaScript - Formatting Preferences?Hi Eacousineau,<br/><br/>More clarification with you. Which edition of Visual Studio are you using now? What kind of project are you developing now? What do you mean &quot;write a class in javascript using the 'this' style, but the JS formatter is screwing with my delegate code.&quot;?<br/><br/>I have VSTS 2008 on my machine and can find <em>JSCript text editor option</em> via Tools &gt;&gt; Options &gt;&gt; Text Editor &gt;&gt; JScript.<br/><br/>Thanks<hr class="sig">Please remember to mark the replies as answers if they help and unmark them if they provide no help. <br/> <a href="http://cfx.codeplex.com/">Welcome to the All-In-One Code Framework!</a> If you have any feedback, please tell us.Mon, 06 Jul 2009 08:03:34 Z2009-07-06T08:03:34Zhttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#33227144-4abd-4339-aee8-dcfbdaf3f95bhttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#33227144-4abd-4339-aee8-dcfbdaf3f95beacousineauhttp://social.msdn.microsoft.com/Profile/en-US/?user=eacousineauJavaScript - Formatting Preferences?I'm using Visual C# 2008 in VS 2008 - no other components installed. I'm working in an ASP.NET application, testing some AJAX functionality.<br/> I checked in the options again but JScript is not listed among the languages under the Text Editor options.<br/> <br/> <blockquote>What do you mean &quot;write a class in javascript using the 'this' style</blockquote> <br/> Sorry about that - typed it out but forgot to elaborate<br/> <pre lang=x-js>// What I called the 'this' style function MyClass() { this.value = 12; this.method = function() { console.debug(&quot;Test: &quot; + this.value); }; } // Prototype style function MyClass() { this.value = 12; } MyClass.prototype.method = function() { console.debug(&quot;Test: &quot; + this.value); };</pre>Mon, 06 Jul 2009 13:47:58 Z2009-07-06T13:47:58Zhttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#a3974c3d-647a-4576-8f0d-9f065741028ehttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#a3974c3d-647a-4576-8f0d-9f065741028eYiChun Chenhttp://social.msdn.microsoft.com/Profile/en-US/?user=YiChun%20ChenJavaScript - Formatting Preferences?Hi Eacousineau,<br/> <br/> Thank you for your clarification. Now I can understand it better. :)<br/> <br/> This forum is for the support of Visual Studio installation. Since your issue is related to ASP.NET Web Application, you could post your thread on <a href="http://forums.asp.net/default.aspx?GroupID=34">ASP.NET AJAX</a> forums<a href="http://forums.asp.net/"></a> <a class=ForumGroupNameRead href="../../../../../17.aspx" class=ForumGroupNameRead></a> . This will make answer searching in the forum easier and be beneficial to other community members as well.<br/> <br/> Thank you for your understanding.<hr class="sig">Please remember to mark the replies as answers if they help and unmark them if they provide no help. <br/> <a href="http://cfx.codeplex.com/">Welcome to the All-In-One Code Framework!</a> If you have any feedback, please tell us.Tue, 07 Jul 2009 03:26:12 Z2009-07-07T03:26:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#46a7067c-98b5-4f60-a1f5-1e99920cb30ehttp://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/07f3e25d-7b6e-487e-a510-12798b5b949f#46a7067c-98b5-4f60-a1f5-1e99920cb30eWrighteoushttp://social.msdn.microsoft.com/Profile/en-US/?user=WrighteousJavaScript - Formatting Preferences?I'm having the exact same problem.  I have just installed Visual Studio 2008 and have set the Web Environment.  When I go into Tools &gt; Options &gt; Text Editor there is no option for JScript.  I can see all of the other languages eg. C# C/C++ CSS HTML PL/SQL...  Likewise the Javascript intellisense is not working at all.<br/><br/>eacousinau, did you have any success?<br/><br/>YiChun Chen, I was talking with my friend via Windows Live Messenger and he like you has JScript listed as an option under Text Editor.<br/><br/>Please, anybody...help!<br/><br/>Thu, 16 Jul 2009 13:22:08 Z2009-07-16T13:22:08Z