Skip to content

Commit

Permalink
Add Auto-Indentation inside Curly Braces (#157)
Browse files Browse the repository at this point in the history
Signed-off-by: Snehil Shah <[email protected]>
  • Loading branch information
Snehil-Shah authored Feb 6, 2024
1 parent af0aa21 commit 3119264
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/EditorCommon/config/Rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export const langConfig = {
{ open: '{', close: '}' },
{ open: '[', close: ']' },
],
indentationRules: {
increaseIndentPattern: /{\s*$/,
decreaseIndentPattern: /^\s*}/,
},
};

export const options = {
Expand Down

0 comments on commit 3119264

Please sign in to comment.