Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Tip #80: Did you know… How to show JScript validation errors as warnings?

With Visual Studio 2008 RTM, JScript validation setting is an option on the HTML validation page on the Options dialog. Since Visual Studio 2008 SP1 and later, we added a new option page JScript on the Options dialog, see the blog "Introducing JScript Formatting in VS 2008 SP1" for more detail. With this change, now the JScript validation resides on its own tab "Miscellaneous" as shown below:

JScript

To view JScript errors as warnings, we need to launch Options dialog from Tool -> Options menu, then expand Text Editor -> JScript -> Miscellaneous, check the checkbox "Show errors as warnings". Some users like to have JScript syntax errors shown in the Error List since it would encourage standard compliance, while others don't like to deal with validation errors since they are browser errors.

Anh Phan

SDET, Visual Web Developer

Posted: Monday, June 15, 2009 11:54 AM by WebDevTools

Comments

What's New said:

With Visual Studio 2008 RTM, JScript validation setting is an option on the HTML validation page on the

# June 15, 2009 6:56 PM

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

# June 16, 2009 10:29 AM

steve said:

I have tried to turn this feature OFF several times, but it just keeps raising its very ugly head in the error pane.

It is slow, un-necessary and just wastes very precious seconds of my time. Every time a page with JavaScript is loaded, VS tries to parse it and find errors, sooooo not necessary!

# June 16, 2009 11:12 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker