[Playground][Nit] Add delete + overtype for autoclosing brackets
Fix for papercut: playground should now be smart about autoclosing brackets. Before: https://user-images.githubusercontent.com/34200447/195653419-0eb529e4-0aed-4894-9db6-bfe1554aaded.mov Now: https://user-images.githubusercontent.com/34200447/195653738-07abed36-d9e8-4842-bac5-9e84b72c0704.mov
mofeiZ committed
Oct 13, 2022 at 13:16 UTC
73059d9a4f453ce0fec26f736c694319e25a6323
1 file changed
+4
compiler/forget/packages/playground/components/Editor/monacoOptions.ts
+4
@@ -17,4 +17,8 @@ export const monacoOptions: Partial<EditorProps["options"]> = {
17
formatOnType: true,
18
fontFamily: '"Source Code Pro", monospace',
19
glyphMargin: true,
20
+
21
+ autoClosingBrackets: "languageDefined",
22
+ autoClosingDelete: "always",
23
+ autoClosingOvertype: "always",
24
};