Настройка monaco editor на использование отступов в 2 пробела в редакторе дашборда

This commit is contained in:
Pavel Gnedov 2023-11-15 08:23:12 +07:00
parent 387a1b28c3
commit 5ec0c1d99e

View file

@ -113,6 +113,7 @@ export const Editor = observer((props: Props): JSX.Element => {
defaultValue={editorValue}
value={editorValue}
onChange={(value) => setEditorValue(value || '')}
options={{ tabSize: 2, detectIndentation: true }}
></MonacoEditor>
</div>
</div>