Skip to content

Commit 93c6c02

Browse files
authored
Configure Monaco editor to format JSON with 2-space indentation (#192)
* Configure Monaco Format Document to use 2-space indentation Signed-off-by: Pranav-0440 <pranavghorpade61@gmail.com> * Configure Monaco JSON formatter to use 2-space indentation Signed-off-by: Pranav-0440 <pranavghorpade61@gmail.com> * fix(editor): configure Monaco JSON indentation to 2 spaces Signed-off-by: Pranav-0440 <pranavghorpade61@gmail.com> * fix(editor): configure Monaco JSON indentation to 2 spaces Signed-off-by: Pranav-0440 <pranavghorpade61@gmail.com> --------- Signed-off-by: Pranav-0440 <pranavghorpade61@gmail.com>
1 parent 0649259 commit 93c6c02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Editor/JsonEditor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const editorOptions: editor.IStandaloneEditorConstructionOptions = {
3131
selectOnLineNumbers: true,
3232
automaticLayout: true,
3333
lineDecorationsWidth: 20,
34+
tabSize: 2,
35+
insertSpaces: true,
3436
};
3537

3638
// delay function that executes the callback once it hasn't been called for

0 commit comments

Comments
 (0)