mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[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
This commit is contained in:
@@ -17,4 +17,8 @@ export const monacoOptions: Partial<EditorProps["options"]> = {
|
||||
formatOnType: true,
|
||||
fontFamily: '"Source Code Pro", monospace',
|
||||
glyphMargin: true,
|
||||
|
||||
autoClosingBrackets: "languageDefined",
|
||||
autoClosingDelete: "always",
|
||||
autoClosingOvertype: "always",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user