VSCode throws errors for all mso properties...?

Viewed 4264

I'm writing an html email based on a template I didn't create. It has a lot of mso css tags like this: mso-hide: all;

I understand what these tags are for, but they make VSCode throw errors like this:

[css.lint.unknownProperties] Unknown property: 'mso-table-rspace' [unknownProperties](252, 13)

It's driving me up a wall. I tried installing some CSS extensions in hopes to eliminate the errors, but haven't found one that helps yet.

How can I make these mso properties go from Unknown to "known" in VSCode?

2 Answers

I was able to get rid of the warnings by using the link listed by Alex KeySmith, then went into VS Code settings and added items into the unknownProperties settings.

To do this (Mac) in VS Code app:

  • I did a Command+Shift+P and typed settings
  • Then, in the search settings box I typed unknownProperties
  • I scrolled to the CSS > Lint: Valid Properties option in the search results
  • and I added items to the CSS > Lint: Valid Properties list until my files showed no warnings.

2 [VS Code unknownProperties items list]

Related