I use Visual Studio as my editor for .css and .js files.. It REALLY SUCKS especially with .js files since it insists on indenting them in a very weird way, but I find it convenient that the first alt-tab is always the browser instead of another editor, and that ctrl-tab is always either the code file or the css/js. I use Visual Studio As .css and .js File editor . it It’s really bad , In especial .js file , Because it insists on indenting them in a very strange way , But I found the first one alt-tab Always a browser, not another editor , also ctrl-tab Always a code file or css / js.
Anyways, in all its radiant wisdom it decides to check them for syntax errors as well and every time I compile my project it gives several “errors” that push down the real errors of the compilation, so every time I make a syntax error in a code file I have to scroll down through all the js/css errors to see what’s wrong. in any case , All its radiant wisdom decided to check their grammatical errors , Every time I compile my project, it produces several “ error ”, So as to suppress the real errors of compilation , So every time I code a file in a syntax error, I have to scroll down and browse all js / css error , See what’s wrong .
Examples of such errors (that aren’t really errors) are: Such mistakes （ Not a real mistake ） An example of this is ：
Error 7 Validation (CSS 2.1): 'text-rendering' is not a known CSS property name.Error 8 Validation (CSS 2.1): 'opacity' is not a known CSS property name.
The situation also got much worse recently, since it now keeps parsing a .js file as a .css file for some reason, so I get errors such as: Things have also gotten worse recently , Because it will now… For some reason .js File resolved to .css file , So I get the following error ：
Error 1 Unexpected character sequence. Expected a selector for the style rule. E:\Dev\anacletus\Static\set_focus.js 2Error 2 Unexpected character sequence. Expected a property name for the " : " declaration. E:\Dev\anacletus\Static\set_focus.js 3Error 3 Validation (CSS 2.1): 'set-focus' is not a known CSS property name. E:\Dev\anacletus\Static\set_focus.js 3
I even deleted that particular file from the solution (it’s not there anymore anywhere), but it keeps parsing it anyway. I even deleted this particular file from the solution （ It no longer exists anywhere ）, But it’s still parsing it anyway .
In short, how can I disable this feature? In short , How can I disable this feature ？
Reference resources ：
Read more here: Source link