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.

renderWhitespace defaults to "selection", not "none"

See original GitHub issue

The documentation says that renderWhitespace defaults to none.

However, I noticed in my code that it is defaulting to selection. I confirmed this by opening an empty playground and selecting some text. Setting this option to none manually resulted in the expected behavior.

monaco-editor version: 0.24.0 Browser: Chrome (latest) OS: Windows 10 Playground code that reproduces the issue: https://microsoft.github.io/monaco-editor/playground.html

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
richardtallentcommented, Jun 5, 2021

Thanks! That makes more sense now. I saw that file, but thought it was auto-generated from something else. Always a challenge to find one’s way around a massive codebase for the first PR! 😃

0reactions
hedietcommented, Jun 5, 2021

Understandably. Feel free to ping me in your PR against the VS Code repository!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provide editor.renderWhitespace "selection" option #1477
Set to "none" to turn off drawing white space, "selection" to draw only the // white space within the selection, and "all" to...
Read more >
Show whitespace characters in Visual Studio Code
In v1.43 the default value will be changed to selection from none as it was in v1.42. "editor.renderWhitespace": "selection" // default in v1.43 ......
Read more >
User and Workspace Settings - Visual Studio Code
Below, the Source Control settings are focused by selecting Source Control in the tree view. ... none: The editor will not insert indentation...
Read more >
IStandaloneEditorConstructionO...
Defaults to "https://go.microsoft.com/fwlink/?linkid=852450" ... To not create automatically a model, use model: null . ... Optional renderWhitespace.
Read more >
JSON Formatter - SnapLogic Documentation - Confluence
If you select None, then the schema is not sampled. ... In in the JSON Formatter Snap, in the Content field under Settings...
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