Skip to content

Commit 1f52560

Browse files
silverwindGiteaBot
andauthoredMay 2, 2023
Enable whitespace rendering on selection in Monaco (#24444)
Remove the [renderWhitespace](https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IEditorOptions.html#renderWhitespace) override, so the default value of `selection` takes over and makes whitespace visible on selection. <img width="128" alt="Screenshot 2023-04-30 at 19 09 41" src="https://user-images.githubusercontent.com/115237/235366707-d598268d-03cc-4839-a195-c460bddae99b.png"> Co-authored-by: Giteabot <teabot@gitea.io>
1 parent d6f8238 commit 1f52560

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎web_src/js/features/codeeditor.js

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const baseOptions = {
1414
overviewRulerLanes: 0,
1515
renderLineHighlight: 'all',
1616
renderLineHighlightOnlyWhenFocus: true,
17-
renderWhitespace: 'none',
1817
rulers: false,
1918
scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6},
2019
scrollBeyondLastLine: false,

0 commit comments

Comments
 (0)
Please sign in to comment.