-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offer code mark styles and gutter marks #9209
Comments
From @AndrewIngram on July 11, 2016 9:15 I found myself searching around for a setting to enable this, I guess i've been heavily spoiled by Atom and Sublime. This is pretty important for me, because I find the squiggly lines to be far too difficult to see when scrolling through a file. |
From @glebec on July 11, 2016 18:28 I second the use of yellow for warning. For one thing, red-green is always a poor UI choice as it ignores the 7%+ of XY-chromosomal people who have red-green color blindness. For another, it matches ESLint. Also yellow just feels more like a warning than green, culturally speaking. Also, the gutter marks can be very helpful, though in the case of VSC it might require some different style as VSC's breakpoint markers are very similar to SublimeLinter error marks. |
Moving to vscode since such a feature has to be implemented in the editor. |
I think we only use green because VS does? Not sure... |
Agreed — I, for example, have a different preference from you in that I like "squiggly" over "outline." |
@bpasero yes green was picked for consistency with VS. Need to check what VS does in the dark theme @bgashler1 ? |
For me it is not only readability. Green conveys the wrong information as well. And the warning icon is usually a yellow triangle with an exclamation mark. So yellow would be IMO the better color for this even if VS uses a more vibrant green. |
I contacted the VS team to learn more about the reason for choosing green. Originally it was yellow (VS2003 I think) but not many people could recall why it was changed. The general consensus though was that it was probably because of the poor contrast that yellow has on a light background. Yellow definitely makes more sense but we will need to see if we can come up with a colour that looks right and has appropriate contrast in the light theme. @bgashler1 - can you help choose an appropriate colour? |
(This comment is regarding only the color, not the styles...) A while ago, Microsoft Word set a precedent for using red squiggly lines for errors in spelling and green for warnings of possible grammar mistakes. This is likely why Visual Studio followed suite, because it was a pattern that people were familiar with in other software and the concepts were similar. To make the software more inclusive for color blindness, recent versions of Word now use blue instead of green for warnings (see below). I propose we use blue here for warnings. I find blue to work well in both light and dark settings. |
@glebec As far as whether we can do user-defined styles or theme-defined styles for errors and warning, I will put this on our UX sync agenda to get our team's feedback. Thanks for the great suggestion! |
I just switched from Atom to VS Code about a week ago. I have a short list of things that need to fixed. This issue is one of them. Arguing over which color is right or wrong will never solve the problem for everyone. Choose reasonable defaults as best you can (green seems weird). But allow the user to override the default styles. Additionally, optionally allowing corresponding error/warning glyphs in the gutter is a great idea. Also while I'm in rant mode, expressing the theme in XML is so old fashioned. I know it's a plist thing, but honestly, do you have to slavishly copy Apple even when it's wrong? |
For me this is one of the main thing i miss in vscode. Here is the reference : https://sublimelinter.readthedocs.io/en/latest/mark_styles.html It can be a good idea to consider to add another mark style like a "red color" for the text in error. Each time an error occurs, the text become red. Does anyone can confirm me it's not possible yet ? |
+1 |
Could this issue be tackled in multiple steps to see faster progress? |
Any update on this? |
At long last! So our current status is as follows:
IMHO the first was the most important, the others are niceties which I think justify keeping this issue open but which aren't as big quality of life improvements. |
Actually it looks like it's also possible to have gutter icons now: ^ that screenshot is from pulling down the codemetrics extension and making this change to it: Docs for Worth doing some investigation into. |
So what we'd want to do is add a setting to VSC to display gutter marks for lines with errors or warnings, so we don't rely on extensions (e.g. ESLint) to implement this behavior individually – yes? The plumbing is there, in theory creating a new setting for it would be not too bad. There would be some built-in images for the marks. As a further goal, themes could optionally provide additional ones, though that's lower priority. |
Additional lint style also, dotted lines, box around the strings etc., ability to change colour/background colour. |
Warning and info squigglies and borders now use separate color ids: I haven't changed the default colors yet: warning and info are still green. Any color recommendations from the UX team. @stevencl ? |
Hey @aeschli ! Is there an ETA on when these options will be available in the live app? I'm very keen to start using them like many others :) |
|
Hi @aeschli , thank you very much for the support, I really love this feature. I think setting |
@taka4sato Sorry, the squiggly coloring is based on the problem's severity (Error, Warning, Info) and there's currently no way of having different colors per problem type. |
are we any closer to having the ability to change squiggly lines for dots in the gutter? Or does the above enable us to do that, or is just the ability to change colour? |
Any update to this topic? I love the ability to update the squiggly color, but having a glyph or marking in the gutter would really help visually see that an action is needed on that line. Thanks in advance! Loving VS Code so far! |
This is still a huge item for me :) |
Referencing #3915 which is also open. |
I found a way to change the error red squiggly line into an outline style (kind of like Sublime Text), so errors are much easier to spot! I like outlined errors MUCH better over small squiggly lines, because I find the squiggly lines to be difficult to see when scrolling through a file. So this was my end result in VS Code: I wrote down the steps I followed to get this to work HERE |
This is genius. I was just complaining about this again today.
…On Nov 9 2018, at 8:37 pm, Ian Izaguirre ***@***.***> wrote:
I found a way to change the error red squiggly line into an outline style (kind of like Sublime Text), so errors are much easier to spot! I like outlined errors MUCH better over small squiggly lines, because I find the squiggly lines to be difficult to see when scrolling through a file.
So this was my end result in VS Code:
I wrote down the steps I followed to get this to work HERE (https://www.izaguir.re/how-to-make-vscode-error-highlighting-look-more-like-sublime-error-highlighting/)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (#9209 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/AFUmCXnA6AH-4G3SiZHI9onVFVekoENgks5utkoGgaJpZM4JLZo1).
|
@tannerlinsley Thanks! I literally have spent weeks searching trying to figure this out because I found it so annoying that I had to squint to find errors lol Glad it could help you. |
created extension for gutters, it's easier than to wait for another 2 years: https://marketplace.visualstudio.com/items?itemName=IgorSbitnev.error-gutters&fbclid=IwAR3jyNd4wbZUz8m36wMRlxUwcpGFCqcbadhEQpuZsyKzbqIw_UL_HGRnddU |
thank you!
btw, I've mostly switched to vscode from atom.
Atom overall ux is better then vscode. But vscode performance is
significantly better. and the vscode built-in terminal is amazing. (I'm a
Linux user btw)
…On Fri, Dec 7, 2018, 14:18 Igor ***@***.*** wrote:
created extension for gutters, it's easier than to wait for another 2
years:
https://marketplace.visualstudio.com/items?itemName=IgorSbitnev.error-gutters&fbclid=IwAR3jyNd4wbZUz8m36wMRlxUwcpGFCqcbadhEQpuZsyKzbqIw_UL_HGRnddU
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9209 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMNA-1gqPBPYCTsKNixbeVeWIQgVqMxks5u2r8OgaJpZM4JLZo1>
.
|
This is such a crucial feature. Coming from other editors, it is just straight difficult to spot errors while scrolling. Looking at the error ticks in the scroll bar and trying to match the little line with the marks is not so convenient either. This is the first major feature I miss, coming from Atom. Besides that, I really like VS Code. |
In addition to the above extension, I found this pretty useful: Error Lens |
From @darkred on July 10, 2016 23:30
(Using VSCode 1.3.0 in win 10 x64 build 10586 with vscode-eslint extension 1.10.18).
Currently the code marks(for errors and warnings) appear only as squiggly underline (i.e. as spellchecker errors in browsers, e.g. Firefox, Chrome):
(the error is in red, and the warning is in green)
My suggestion is to offer more code mark styles (ideally the outline style, as it highlights the errors/warnings the best way -see below- ) and gutter marks :
(with the errors to be in red, and the warnings to be in yellow, as ESLint itself uses these colors - not green)
(here is another screenshot)
It's more easy to distinguish the errors this way.
Thank you
For reference SublimeLinter3 package offers five different code mark styles :
and two types of gutter marks:
Copied from original issue: microsoft/vscode-eslint#99
The text was updated successfully, but these errors were encountered: