键盘快捷键
Cmd + R
然后 Cmd + S
查看所有键盘快捷键。Cmd
键可以在 Windows 上替换为 Ctrl
。总览 (General)
快捷键 (Shortcut) | 操作 (Action) |
---|---|
Cmd + I (⌘I) | 切换侧边栏 (Sidepanel) (除非绑定到模式) |
Cmd + L (⌘L) | 切换侧边栏 (Sidepan)(除非绑定到模式) |
Cmd + . (⌘.) | 打开模式菜单 (Mode Menu) |
Cmd + / (⌘/) | 循环切换 AI 模型 (AI models) |
Cmd + Shift + J (⌘⇧J) | 打开 Cursor 设置 (Cursor settings) |
Cmd + , (⌘,) | 打开通用设置 (General settings) |
Cmd + Shift + P (⌘⇧P) | 打开命令面板 (command palette) |
Chat
快捷键 (Shortcut) | 操作 (Action) |
---|---|
Enter | 提交 (Submit) |
Cmd + Shift + Backspace (⌘⇧⌫) | 取消生成 (Cancel generation) |
Cmd + L (⌘L) with code selected | 将选定的代码添加为上下文 (context) |
Cmd + Shift + L (⌘⇧L) with code selected | 将选定的代码添加为上下文 (context) |
Cmd + Enter (⌘⏎) | 接受所有更改 (Accept all changes) |
Cmd + Backspace (⌘⌫) | 拒绝所有更改 (Reject all changes) |
Tab | 循环到下一条消息 (Cycle to next message) |
Shift + Tab (⇧⇥) | 循环到上一条消息 (Cycle to previous message) |
Cmd + Alt + / (⌘⌥/) | 打开模型切换 (Open model toggle) |
Cmd + N (⌘N) / Cmd + R (⌘R) | 创建新聊天 (Create new chat) |
Cmd + Shift + K (⌘⇧K) | 将 Composer 作为栏打开 (Open composer as bar) |
Cmd + [ (⌘[) | 打开上一个聊天 (Open previous chat) |
Cmd + ] (⌘]) | 打开下一个聊天 (Open next chat) |
Cmd + W (⌘W) | 关闭聊天 (Close chat) |
Esc | 取消字段焦点 (Unfocus the field) |
Cmd+K
快捷键 (Shortcut) | 操作 (Action) |
---|---|
Cmd + K | 打开 (Open) |
Cmd + Shift + K | 切换输入焦点 (Toggle input focus) |
Enter | 提交 (Submit) |
Cmd + Shift + Backspace (⌘⇧⌫) | 取消 (Cancel) |
Option + Enter | 提问快速问题 (Ask quick question) |
代码选择和上下文 (Code Selection & Context)
快捷键 (Shortcut) | 操作 (Action) |
---|---|
@ | @ 符号 (@-symbols) |
# | 文件 (Files) |
/ | 快捷命令 (Shortcut Commands) |
/ | 快捷命令 (Shortcut Commands) |
Cmd + Shift + L | 将选择添加到 Chat |
Cmd + Shift + K | 将选择添加到 Edit |
Cmd + L | 将选择添加到新聊天 (new chat) |
Cmd + M | 切换文件读取策略 (Toggle file reading strategies) |
Cmd + → | 接受建议的下一个词 (Accept next word of suggestion) |
Cmd + Enter | 在聊天中搜索代码库 (Search codebase in chat) |
Select code, Cmd + C, Cmd + V | 将复制的参考代码添加为上下文 (context) |
Select code, Cmd + C, Cmd + Shift + V | 将复制的代码添加为文本上下文 (text context) |
Tab
快捷键 (Shortcut) | 操作 (Action) |
---|---|
Tab | 接受建议 (Accept suggestion) |
Cmd + → | 接受下一个词 (Accept next word) |
终端 (Terminal)
快捷键 (Shortcut) | 操作 (Action) |
---|---|
Cmd + K | 打开终端提示栏 (Open terminal prompt bar) |
Cmd + Enter | 运行生成的命令 (Run generated command) |
Esc | 接受命令 (Accept command) |
修改于 2025-03-31 05:53:36