question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rendered whitespace in selection hard to read

See original GitHub issue

When displaying whitespace characters in the selected code via editor.renderWhitespace: selection (which is the new default, by the way), the characters are hard to see. Pictured here is Python source code.

Dracula: image

Dracula Soft: image

Not sure how feasible it would be to update editorWhitespace.foreground to add some contrast without it looking ugly when unselected.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leandrocunhacommented, Mar 11, 2020

I opened a PR for this improvement, really useful suggestion

1reaction
beebcommented, Mar 11, 2020

Additional option: use transparency, for instance #ffffff1f which gives this:

Screenshot 2020-03-11 at 07 43 21

To be honest this gives very good readability both in selected and unselected state.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How whitespace is handled by HTML, CSS, and in the DOM
The presence of whitespace in the DOM can cause layout problems and make manipulation of the content tree difficult in unexpected ways, ...
Read more >
Only Render Whitespace on Selection #7825 - GitHub
In my opinion, this helps with code readability, while still allowing you to see whitespace if you need to. Code currently only supports...
Read more >
css - how to stop inline-block whitespace being rendered in ...
Set the font-size to zero for the container, and back to full size again for the blocks. This works really well. It's a...
Read more >
Better visibility for whitespaces in editor when "Show ...
Turned on show whitespaces. 'Tabs' are too visible to the point of distracting, and 'Spaces' (dots) are almost invisible. Hard to choose a...
Read more >
Why does my shell script choke on whitespace or other ...
If you use $foo unquoted, your script will choke on input or parameters (or command output, with $(foo) ) containing whitespace or \[*?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found