Gemini CLI 键盘快捷键
¥Gemini CLI Keyboard Shortcuts
本文档列出了 Gemini CLI 中可用的键盘快捷键。
¥This document lists the available keyboard shortcuts in the Gemini CLI.
一般的
¥General
捷径 ¥Shortcut |
描述 ¥Description |
|---|---|
¥ |
关闭对话和建议。 ¥Close dialogs and suggestions. |
¥ |
取消正在进行的请求并清除输入。按两次即可退出应用程序。 ¥Cancel the ongoing request and clear the input. Press twice to exit the application. |
¥ |
如果输入为空,则退出应用程序。按两次确认。 ¥Exit the application if the input is empty. Press twice to confirm. |
¥ |
清除屏幕。 ¥Clear the screen. |
¥ |
切换调试控制台的显示。 ¥Toggle the display of the debug console. |
¥ |
允许完整打印长响应,禁用截断。使用终端的回滚功能可查看完整输出。 ¥Allows long responses to print fully, disabling truncation. Use your terminal's scrollback to view the entire output. |
¥ |
切换工具描述的显示。 ¥Toggle the display of tool descriptions. |
¥ |
为所有工具调用切换自动批准(YOLO 模式)。 ¥Toggle auto-approval (YOLO mode) for all tool calls. |
输入提示
¥Input Prompt
捷径 ¥Shortcut |
描述 ¥Description |
|---|---|
¥ |
当输入为空时切换 shell 模式。 ¥Toggle shell mode when the input is empty. |
¥ |
插入换行符。 ¥Insert a newline. |
¥ |
向下浏览输入历史记录。 ¥Navigate down through the input history. |
¥ |
提交当前提示。 ¥Submit the current prompt. |
¥ |
删除光标右侧的单词。 ¥Delete the word to the right of the cursor. |
¥ |
如果存在,则自动完成当前建议。 ¥Autocomplete the current suggestion if one exists. |
¥ |
向上浏览输入历史记录。 ¥Navigate up through the input history. |
¥ |
将光标移动到行首。 ¥Move the cursor to the beginning of the line. |
¥ |
将光标向左移动一个字符。 ¥Move the cursor one character to the left. |
¥ |
清除输入提示 ¥Clear the input prompt |
¥ |
清除输入提示。 ¥Clear the input prompt. |
¥ |
删除光标右侧的字符。 ¥Delete the character to the right of the cursor. |
¥ |
将光标移动到行尾。 ¥Move the cursor to the end of the line. |
¥ |
将光标向右移动一个字符。 ¥Move the cursor one character to the right. |
¥ |
删除光标左侧的字符。 ¥Delete the character to the left of the cursor. |
¥ |
从光标处删除到行尾。 ¥Delete from the cursor to the end of the line. |
¥ |
将光标向左移动一个单词。 ¥Move the cursor one word to the left. |
¥ |
向下浏览输入历史记录。 ¥Navigate down through the input history. |
¥ |
向上浏览输入历史记录。 ¥Navigate up through the input history. |
¥ |
将光标向右移动一个单词。 ¥Move the cursor one word to the right. |
¥ |
从光标处删除到行首。 ¥Delete from the cursor to the beginning of the line. |
¥ |
粘贴剪贴板内容。如果剪贴板包含图像,则会保存该图像并在提示中插入对图像的引用。 ¥Paste clipboard content. If the clipboard contains an image, it will be saved and a reference to it will be inserted in the prompt. |
¥ |
删除光标左侧的单词。 ¥Delete the word to the left of the cursor. |
¥ |
在外部编辑器中打开当前输入。 ¥Open the current input in an external editor. |
建议
¥Suggestions
捷径 ¥Shortcut |
描述 ¥Description |
|---|---|
¥ |
向下浏览建议。 ¥Navigate down through the suggestions. |
¥ |
接受选定的建议。 ¥Accept the selected suggestion. |
¥ |
浏览建议。 ¥Navigate up through the suggestions. |
单选按钮选择
¥Radio Button Select
捷径 ¥Shortcut |
描述 ¥Description |
|---|---|
¥ |
向下移动选择。 ¥Move selection down. |
¥ |
确认选择。 ¥Confirm selection. |
¥ |
向上移动选择。 ¥Move selection up. |
¥ |
按编号选择一个项目。 ¥Select an item by its number. |
(多位数字) ¥(multi-digit) |
对于数字大于 9 的项目,请快速连续按下数字以选择相应的项目。 ¥For items with numbers greater than 9, press the digits in quick succession to select the corresponding item. |
IDE 集成
¥IDE Integration
捷径 ¥Shortcut |
描述 ¥Description |
|---|---|
¥ |
查看从 IDE 收到的上下文 CLI ¥See context CLI received from IDE |