Claude Code Control and Modes | Rookie Tutorial
Rookie Tutorial --
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
Claude Code Tutorial
Claude Code TutorialClaude Code IntroductionClaude Code Installation and UsageHow Claude Code WorksClaude Code API ConfigurationClaude Code DeepSeekCoding PlanClaude Code First UseVS Code Claude CodeJetBrains Claude CodeClaude Code Project InitializationClaude Code Project StructureClaude Code Interactive ModeClaude Code Operation InstructionsClaude Code Basic UsageCLAUDE.md Usage GuideClaude Code Context ManagementClaude Code Permission ConfigurationClaude Code MCPClaude Code SubagentClaude Code PluginsClaude Code Memory SystemAgent SkillsSkills Usage Examplesskill-creator UsageClaude Code Output StylesClaude Code HooksClaude Code CLI Reference ManualClaude Code Control and ModesClaude Code Slash CommandsClaude Code CheckpointsClaude Code Plugin Reference ManualClaude Code PracticalClaude Code Control Chrome BrowserClaude Code Parallel TasksClaude Code Environment VariablesClaude Code Git WorkflowClaude Code GitHub ActionsClaude Agent SDK Usage InstructionsClaude Code Development ConfigurationClaude Code and remotion-best-practices for Video ProductionClaude Code Practical
Claude Code CLI Reference Manual
Claude Code Control and Modes
The core capabilities of Claude Code interactive mode include keyboard shortcuts, Vim editing mode, command history management, and background Bash command execution. The following is a summary of the key content:
I. Keyboard Shortcuts
Shortcut effects vary by terminal and system. macOS users need to configure the Option key as Meta (configuration paths vary by terminal, see original text). Press ? to view available shortcuts for the current environment.
? to view available shortcuts for the current environment.| Category | Shortcut/Operation | Core Function |
|---|---|---|
| General Control | Ctrl+C |
Cancel current input/generation |
Ctrl+D |
Exit session | |
Ctrl+L |
Clear screen (retain history) | |
Ctrl+O |
Toggle verbose output (display tool execution logs) | |
Ctrl+R |
Reverse search command history | |
Option+P/Alt+P |
Switch model (without clearing prompt) | |
| Text Editing | Ctrl+K/Ctrl+U |
Delete to end of line / Delete entire line (deleted content can be pasted) |
Ctrl+Y |
Paste content deleted by Ctrl+K/Ctrl+U |
|
Alt+B/Alt+F |
Move cursor backward/forward by word (requires Meta key configuration) | |
| Theme Display | Ctrl+T |
Toggle code block syntax highlighting (only valid within /theme menu) |
| Multi-line Input | +Enter / Shift+Enter |
Line break input (Shift+Enter works without configuration in terminals like iTerm2/WezTerm) |
Ctrl+J |
Multi-line line break | |
| Quick Commands | / prefix |
Trigger slash commands (see slash command documentation for details) |
! prefix |
Directly run Bash commands (output counted in session) | |
@ |
Trigger file path auto-completion |
II. Vim Editor Mode
Temporarily enabled via /vim, or permanently configured via /config, supporting core Vim operation logic.
1. Mode Switching
| Command | Operation | Trigger Scenario |
|---|---|---|
Esc |
Enter NORMAL mode | In INSERT mode |
i/I |
Insert before cursor / at beginning of line | In NORMAL mode |
a/A |
Insert after cursor / at end of line | In NORMAL mode |
YouTip