Skip to content

renderWhitespace defaults to "selection", not "none" #2502

@richardtallent

Description

@richardtallent

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

Metadata

Metadata

Assignees

Labels

help wantedIssues identified as good community contribution opportunities

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions