-
Notifications
You must be signed in to change notification settings - Fork 369
Closed
Description
The handler responsible for converting tab to spaces replaces the selection instead of indenting it:
userscripts/src/ext/extension-page/Components/Editor/CodeMirror.svelte
Lines 153 to 157 in 77ae5ee
| Tab: (cm) => { | |
| // convert tabs to spaces and add invisible elements | |
| const s = Array(cm.getOption("indentUnit") + 1).join(" "); | |
| cm.replaceSelection(s); | |
| }, |
I would also expect ShiftTab to unindent a line or selection, but it doesn't have any effect.
Observed behavior:
Expected behavior (shown on sublime text):
Workaround:
Using multiple cursors by pressing Alt and dragging the mouse can indent multiple lines, but it isn't practical and also fails at unindenting correctly as it removes the whole indentation when pressing ShiftTab.
Metadata
Metadata
Assignees
Labels
No labels


