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.

editor.renderWhitespace should have option for selection+trailing

See original GitHub issue

Right now you’re limited to picking between selection (old) or trailing (new), but if you want both behaviours you’re out of luck.

There should be an option allowing both to be true.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:49
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
tuxcomputerscommented, May 16, 2022

Yeah, it was a mistake IMO to model these as a single value. Should be a series of checkboxes, e.g:

* Render trailing whitespace

* Render leading whitespace

* Render all whitespace in selection

* And one for the "boundary" option, which I frankly don't even understand.

Boundary is trailing + leading + more than single space within the text. This is boundary, the red arrow is the whitespace rendering for more than single space Screenshot_1404

If it was a series of checkboxes it would solve my request, I want boudary without the last one, I could just tick leading and trailing.

3reactions
timidakcommented, Jul 18, 2022

Hi, I would like to implement this.🖐️

In my opinion, you could model this with an array of strings (corresponding to the options) or an object with the options as keys and booleans as values. Feel free to suggest other ways.🙂

Also, are there any other requirements from the core contributors?

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code tips — The editor.renderWhitespace setting - YouTube
Today's VS Code setting : editor.renderWhitespaceRender spaces and tabs as visible characters in a file.
Read more >
Visual Studio Code: How to show line endings - Stack Overflow
I use the following settings, but none of them show the line endings. "editor.renderWhitespace": true, "editor.renderControlCharacters": true ...
Read more >
User and Workspace Settings - Visual Studio Code
The Settings editor Search bar has several filters to make it easier to manage your ... Controls how the editor should render whitespace...
Read more >
UNPKG - @finos/perspective-viewer
n * Once created, you can connect an input event to it and it will simply forward\n * events from that input event...
Read more >
VS Code: How to Render Whitespace Characters - Kindacode
You will see something like this (the whitespace characters will show up as ... You've learned how to show whitespace characters in VS...
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