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

Comments (3)

  1. What's New says:

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

  2. Thank you for submitting this cool story – Trackback from DotNetShoutout

  3. steve says:

    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!