We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 807f3e5 commit d0b4153Copy full SHA for d0b4153
src/components/code-editor/code-editor.tsx
@@ -182,9 +182,7 @@ export class CodeEditor {
182
// the space count
183
editor.setOption('extraKeys', {
184
Tab: (codeMirror) => {
185
- const spaces = [codeMirror.getOption('indentUnit') + 1].join(
186
- ' '
187
- );
+ const spaces = ' '.repeat(codeMirror.getOption('indentUnit'));
188
codeMirror.replaceSelection(spaces);
189
},
190
});
0 commit comments