Is there a way to improve linting errors highlight in Visual Studio Code?
Asked Answered
M

2

18

Currently eslint/tslint highlighting for issues/errors is super invisible (comparing, for example, to Atom). Its almost impossible to catch the issue - find the small green highlight zone (see screenshot)

VSCode: VSCode screenshot

Atom: Atom screenshot

Question is not relevant since June 2018 (VSCode now has awesome highlights)

Mudlark answered 27/6, 2016 at 14:58 Comment(3)
Did you found a way to improve highlighting? I searched open/closed issues on GitHub about this but there are too many. Maybe this is something that installing a theme can improve?Spoonfeed
@GustavoCoelho nope, asked team in gitter, seems like its fine for them ATM :)Mudlark
There is an issue in VSCode for this, please vote: github.com/Microsoft/vscode/issues/16222Katabatic
L
17

Simple. I use 2 extensions for that:

Error Lens (usernamehw.errorlens) for highlight the entire line and show on real time the error diagnostic

Error Gutters (igorsbitnev.error-gutters) for put error icons next of line number

Both look like this:

enter image description here

Leader answered 26/7, 2019 at 22:22 Comment(3)
Errorlens is great!Ceroplastics
That should be an accepted solution for now, I couldn't agree moreWinifield
Error Lens already includes Error Gutters. Simply enable Icons in Error Lens.Woothen
B
5

For those who would like a partial solution for this you can actually open up the console in vscode on the PROBLEMS tab to display all errors on across your application grouped by file.

I would prefer the inline visualised approach, but this does resolve this problem more or less.

enter image description here

To open the PROBLEMS tab, click CMD+Shift+M on Mac.

Not sure about windows.

Blaze answered 23/3, 2017 at 22:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.