AutomaApp / automa

A browser extension for automating your browser by connecting blocks
https://www.automa.site
Other
10.73k stars 1.09k forks source link

The idea of replacing codemirror with MonacoEditor #1711

Open Stitch-1028 opened 1 month ago

Stitch-1028 commented 1 month ago

Hello, I have been using AutoMa a lot lately, but when using GlobalData, there are often some aspects that are not easy to handle. For example, each time the data is unfolded by default, although I later used an additional method to fold the first layer of data by default image image

but, I gradually realized that CodeMirror did not have the ability to perform key operations like MonacoEditor, such as the Ctrl+K+0 one click folding function, so I replaced the editor locally and currently there are no issues in GlobalData

image

If you think it's possible, I would like to apply for a Pull Request to replace codemirror with monacoEditor

AprildreamMI commented 1 month ago

Upgrade to Monaco Editor for Improved Performance and User Experience

Switching to Monaco Editor from CodeMirror offers several key advantages:

Better Performance with Large Files

Monaco Editor handles large files smoothly, maintaining high performance where CodeMirror might struggle.

IntelliSense and Advanced Features

Monaco provides advanced code completion and intelligent suggestions, improving coding efficiency significantly over CodeMirror's basic capabilities.

Accessibility and Ease of Use

Monaco is user-friendly, with excellent support for accessibility features like screen readers, making it an inclusive choice for all developers.

Modern Look and Feel

The editor has a sleek, contemporary interface that improves readability and reduces eye strain, offering customizable themes to fit developer preferences.

Customization and Integration

Monaco integrates seamlessly into web applications and allows for extensive customization to fit your project's needs.