Skip to content

feat(Editor): (Codex) Ctrl+Shift+F 格式化#1415

Open
cyfung1031 wants to merge 1 commit intorelease/v1.4from
feat/ScriptEditor/format-button
Open

feat(Editor): (Codex) Ctrl+Shift+F 格式化#1415
cyfung1031 wants to merge 1 commit intorelease/v1.4from
feat/ScriptEditor/format-button

Conversation

@cyfung1031
Copy link
Copy Markdown
Collaborator

@cyfung1031 cyfung1031 commented May 7, 2026

Checklist / 检查清单

  • Fixes mentioned issues / 修复已提及的问题
  • Code reviewed by human / 代码通过人工检查
  • Changes tested / 已完成测试

Description / 描述

有AI 真的很方便... 原本我打算不做 shortcut. 它自己会帮我想成 Ctrl+Shift+F
它还注意到要把 onKeyUp 换成 onDidChangeModelContent ...

我只是把它从 「贴上」下面搬到「全选」下面

这个小PR有了AI都可以提交了。不然就一直因为有其他事要做没提交

  • 将编辑器变更监听从键盘事件改为 Monaco 内容变更事件,确保剪切、粘贴、格式化、undo/redo 等非键盘输入也能正确更新编辑状态。

Screenshots / 截图

Screenshot 2026-05-07 at 17 41 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant