Настройка monaco editor на использование отступов в 2 пробела в редакторе дашборда
This commit is contained in:
parent
387a1b28c3
commit
5ec0c1d99e
1 changed files with 1 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ export const Editor = observer((props: Props): JSX.Element => {
|
||||||
defaultValue={editorValue}
|
defaultValue={editorValue}
|
||||||
value={editorValue}
|
value={editorValue}
|
||||||
onChange={(value) => setEditorValue(value || '')}
|
onChange={(value) => setEditorValue(value || '')}
|
||||||
|
options={{ tabSize: 2, detectIndentation: true }}
|
||||||
></MonacoEditor>
|
></MonacoEditor>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue