Brian's Blog

items I see across my tribes

VS and CSS Errors – mark as Warnings

May 08
by briancarter 8. May 2010 16:10

Nothing annoys me more on a Friday afternoon than the Visual Studio Error List raising its ugly head and popping up with (often irrelevant ones) about the CSS and HTML markup.

So after playing about with settings and looking around the internet, I found you can either just close all the CSS & HTML (or aspx) files you are working on (as it only checks open document's markup) or you can tell Visual Studio to ignore the errors by un-checking:

CSS:
Tools > Options > Text Editor > CSS > Miscellaneous > Errors

HTML:
Tools > Options > Text Editor > HTML > Validation > Show errors

Please, no comments about using the correct validation target, actually fixing the errors or conforming to how Visual Studio wants me to do everything – I checked the “as warnings” box and will revisit them later.  You can choose to not detect the Errors or mark them as Warnings…

Or compile with the CSS files closed.  Closing the CSS file in VS and the errors don’t display is bizarre.  One would think if a file in VS has an error – why would it matter if the window was open???

Categories: Development

Comments

5/9/2010 5:56:58 PM #

Pingback from topsy.com

Twitter Trackbacks for
        
        Brian's Blog | VS and CSS Errors – mark as Warnings
        [chipsofttech.com]
        on Topsy.com

topsy.com


 Questions or Feedback, my contact information is located on my About page.


The opinions, thoughts, and comments made in these blog posts are solely my own (unless otherwise stated). They do not reflect the opinions, thoughts or practices of my employer, my universities, my family, or anyone else. Also, I retain the right to change my mind about anything I publish here without having to go back and edit posts that occurred in the past. 

These are my opinions, or just as likely, someone else's opinions that I leveraged for my own.