I am using VS17 to edit client side Javascript files.
The built-in intellisense and linter are great, but when the linter finds an error I get only a green scribble line under the error (using dark theme).
This is way too easy to miss. I end up going back to the browser etc. only to find out a syntax error way too often.
How can I get more visual cues on linter errors. I want something on the left side, something marking the whole line from end to right (as in sublime-linter), or something else that makes it super visible that something is wrong.
To find the settings in Visual Studio Code, use the command palette to open Preferences: Open Workspace Settings (JSON). With this code in your settings. json file, ESLint will now automatically correct errors and validate JavaScript on save. Return back to your app.
If you have the ESLint extension installed you can use CTRL+SHIFT+P to open the Command Palette. Then search for ESLint: Fix all auto-fixable Problems and press ENTER (or RETURN ). You are free from counting indentation and checking for quotation marks and semicolons!
You can click on the summary or press Ctrl+Shift+M to display the PROBLEMS panel with a list of all current errors. If you open a file that has errors or warnings, they will be rendered inline with the text and in the overview ruler.
To visualize errors list to left side of your VS window more highlight follow these steps:
Go to left bottom side of VS and drag Error List. And Drop it in center pane icon
After this you can easily view all errors and warnings to left pane.
Move Error List to left side of you window and then a new prediction will show up like: and drop it to center .
Not drop to middle center of your editor!
Enable Productivity Power Tools will highlight errors code-files (tab).
Enable ReSharper will highlight error lines in a code-file.
After installing Productivity Power Tools then go in VS solution explorer and select errors from dropdown:
And follow this reference.
Have you tried changing the "Compiler Error / Other Error / Syntax Error / Warning" colors?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With