YouTip LogoYouTip

Claude Code Symbols

Claude Code Operation Guide |

\n\n

Claude Code’s input box is not a pure chat interface, but rather:

\n\n
\n

AI + Editor + Command Scheduler β€” Integrated Terminal

\n
\n\n

There are primarily three types of prefix triggers:

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SymbolTypeEssential Function
/CommandExecute built-in operations
@ContextReference files/code/directories
!Bash ModeExecute terminal commands directly; stdout/stderr are automatically injected into context
#MemoryPersistently write content into the project memory file CLAUDE.md for long-term, cross-session effect (e.g., #config.yaml)
&AsyncExecute tasks asynchronously in the background/cloud, non-blocking the current session; view progress at claude.ai/code after closing the terminal
+ EnterMultilineInsert line breaks without sending; write multiline content in one go for lengthy instructions
No prefixNatural LanguageStandard task instructions
\n\n
\n\n

/ β€” Operational Commands (Most Important)

\n\n

/ is the core symbol in Claude Code for triggering built-in commands/tools, similar to command prefixes in a terminal shell, used to instruct Claude to perform specific operations rather than merely generating text.

\n\n

Core Use Cases: Invoke built-in features (e.g., code generation, file operations, environment execution, plugin invocation, etc.).

\n\n

After /, immediately follow with a command keyword, then a space and parameters (e.g., filenames, commands to execute, targets for fixes, etc.). This is the key mechanism Claude Code uses to distinguish natural language conversation from code operation instructions.

\n\n

Typing / will display a list of available commands:

\n\n

Image 1

\n\n

Common frequently used commands:

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
CommandFunction
/helpView all capabilities
/clearClear conversation
/planEnter planning mode
/modelSwitch model
/contextView context usage
/exportExport conversation
/statusEnvironment status
/tasksManage background tasks
/themeSwitch theme
/memoryEdit CLAUDE.md
\n\n

Example:

\n\n
//plan Implement a user login module\n
\n\n
\n\n

@ β€” Context Injection

\n\n

After @, follow with a filename; Claude will auto-suggest:

\n\n

Image 2

\n\n

Reference a single file:

\n\n

@main.py Help me check for bugs
\nImage 3

\n\n

Reference multiple files:

\n\n

@main.py @main2.py Do these two contain duplicate logic?

\n\n

Reference an entire directory using @ + directory path:

\n\n

@src/ Analyze project structure and provide optimization suggestions

\n\n

Reference error logs:

\n\n

@npm-debug.log Identify the cause of failure

\n\n

Claude will load the file contents into its reasoning context.

\n\n
\n\n

! β€” Bash Commands

\n\n

Run bash commands directly by prefixing input with !, bypassing Claude. Format:

\n\n

! + Bash Command

\n\n

Typing ! will prompt entry into Bash command mode:

\n\n

Image 4

\n\n

Example: view current directory:

\n\n

! ls -la
\nImage 5

\n\n
\n\n

Vim Editor Mode

\n\n

Enable Vim-style editing using the /vim command, or configure permanently via /config.

\n\n

Mode Switching

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
CommandActionFrom Mode
EscEnter NORMAL modeINSERT
iInsert before cursorNORMAL
IInsert at beginning of lineNORMAL
aInsert after cursorNORMAL
AInsert at end of lineNORMAL
oOpen new line belowNORMAL
OOpen new line aboveNORMAL
\n\n

Navigation (NORMAL Mode)

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
CommandAction
h/j/k/lMove left/down/up/right
wNext word
eEnd of word
bPrevious word
0Beginning of line
$End of line
^First non-whitespace character
ggStart of input
GEnd of input
f{char}Jump to next occurrence of char
F{char}Jump to previous occurrence of char
t{char}Jump to just before next occurrence of char
T{char}Jump to just after previous occurrence of char
;Repeat last f/F/t/T motion
,Reverse repeat last f/F/t/T motion
\n\n

Editing (NORMAL Mode)

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
CommandAction
xDelete character
ddDelete line
DDelete to end of line
dw/de/dbDelete word/to end/backward
ccChange line
CChange to end of line
cw/ce/cbChange word/to end/backward
yy/YYank (copy) line
yw/ye/ybYank word/to end/backward
pPaste after cursor
PPaste before cursor
>>Indent line
<<Unindent line
JJoin lines
.Repeat last change
\n\n

Text Objects (NORMAL Mode)

\n\n

Text objects work with operators like d, c, and y:

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
CommandAction
iw/awInner/around word
iW/aWInner/around WORD (space-delimited)
i"/a"Inner/around double quotes
i'/a'Inner/around single quotes
i(/a(Inner/around parentheses
i[/a[Inner/around brackets
i{/a{Inner/around braces
\n\n
\n\n

Command History

\n\n

Claude Code maintains command history for the current session:

\n\n
    \n
  • History is stored per working directory
  • \n
  • Clear using the /clear command
  • \n
  • Navigate using Up/Down arrows (see keyboard shortcuts above)
  • \n
  • Note: History expansion (!) is disabled by default
  • \n
\n\n

Reverse Search with Ctrl+R

\n\n

Press Ctrl+R to interactively search your command history:

\n\n
    \n
  • Start search: Press Ctrl+R to activate reverse history search
  • \n
  • Type query: Enter text to search in previous commands β€” matched terms are highlighted
  • \n
  • Navigate matches: Press Ctrl+R again to cycle through older matches
  • \n
  • Accept match:\n
      \n
    • Press Tab or Esc to accept current match and continue editing
    • \n
    • Press Enter to accept and immediately execute the command
    • \n
    \n
  • \n
  • Cancel search:\n
      \n
    • Press Ctrl+C to cancel and restore original input
    • \n
    • Press Backspace on an empty search to cancel
    • \n
    \n
  • \n
\n\n

The search displays matching commands with the search term highlighted, making it easy to find and reuse previous inputs.

\n\n
\n\n

Background Bash Commands

\n\n

Claude Code supports running bash commands in the background, allowing you to continue working while long-running processes execute.

\n\n

How Background Execution Works

\n\n

When Claude Code runs a command in the background, it executes the command asynchronously and immediately returns a background task ID. Claude Code can respond to new prompts while the command continues running in the background.

\n\n

To run a command in the background, you can:

\n\n
    \n
  • Ask Claude Code to run the command in the background
  • \n
  • Press Ctrl+B to move a regular Bash tool call to the background. (Tmux users must press Ctrl+B twice, as it is tmux’s prefix key.)
  • \n
\n\n

Key Features:

\n\n
    \n
  • Output is buffered; Claude can retrieve it using the TaskOutput tool
  • \n
  • Background tasks have unique IDs for tracking and output retrieval
  • \n
  • Background tasks are automatically cleaned up when Claude Code exits
  • \n
\n\n

To disable all background task features, set the environment variable CLAUDE_CODE_DISABLE_BACKGROUND_TASKS to 1.

\n\n

Common background commands:

\n\n
    \n
  • Build tools (webpack, vite, make)
  • \n
  • Package managers (npm, yarn, pnpm)
  • \n
  • Test runners (jest, pytest)
  • \n
  • Development servers
  • \n
  • Long-running processes (docker, terraform)
  • \n
\n\n

Bash Mode with ! Prefix

\n\n

Run bash commands directly by prefixing input with !, bypassing Claude:

\n\n
! npm test\n! git status\n! ls -la\n
\n\n

Bash mode:

\n\n
    \n
  • Adds the command and its output to the conversation context
  • \n
  • Shows real-time progress and output
  • \n
  • Supports the same Ctrl+B for background execution of long-running commands
  • \n
  • Does not require Claude to interpret or approve the command
  • \n
  • Supports history-based autocompletion: type a partial command and press Tab to complete from previous ! commands in the current project
  • \n
\n\n

This is useful for quick shell operations while maintaining conversation context.

\n\n
\n\n

Keyboard Shortcuts

\n\n

General Controls

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ShortcutDescriptionContext
Ctrl+CCancel current input or generationStandard interrupt
Ctrl+DExit Claude Code sessionEOF signal
Ctrl+GOpen in default text editorEdit your prompt or custom response in the default text editor
Ctrl+LClear terminal screenPreserve conversation history
Ctrl+OToggle verbose outputShow detailed tool usage and execution
Ctrl+RReverse search command historyInteractive search of previous commands
Ctrl+V or Cmd+V (iTerm2) or Alt+V (Windows)Paste image from clipboardPaste image or path to image file
Ctrl+BRun task in backgroundRun bash commands and agents in background. Tmux users press twice
Left/Right arrowsCycle through conversation tabsNavigate between tabs in permission dialog and menus
Up/Down arrowsNavigate command historyRecall previous inputs
Esc + EscRevert code/conversationRestore code and/or conversation to previous state
Shift+Tab or Alt+M (some configs)Toggle permission modeSwitch between auto-accept, Plan Mode, and normal mode
Option+P (macOS) or Alt+P (Windows/Linux)Toggle modelSwitch models without clearing prompt
Option+T (macOS) or Alt+T (Windows/Linux)Toggle extended thinkingEnable or disable extended thinking mode. Run /terminal-setup first to enable this shortcut
\n\n

Text Editing

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ShortcutDescriptionContext
Ctrl+KDelete to end of lineStore deleted text for pasting
Ctrl+UDelete entire lineStore deleted text for pasting
Ctrl+YPaste deleted textPaste text deleted with Ctrl+K or Ctrl+U
Alt+Y (after Ctrl+Y)Cycle through paste historyCycle through previously deleted text after pasting. Requires setting Option as Meta on macOS
Alt+BMove cursor backward one wordWord navigation. Requires setting Option as Meta on macOS
Alt+FMove cursor forward one wordWord navigation. Requires setting Option as Meta on macOS
\n\n

Theme and Display

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ShortcutDescriptionContext
Ctrl+TToggle syntax highlighting in code blocksOnly works inside the /theme selector menu. Controls whether code in Claude’s responses uses syntax coloring
\n\n

Syntax highlighting is only available in native builds of Claude Code.

\n\n

Multiline Input

\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
MethodShortcutContext
Quick escape + EnterWorks in all terminals
macOS defaultOption+EnterDefault on macOS
Shift+EnterShift+EnterOut of the box in iTerm2, WezTerm, Ghostty, Kitty
Control sequenceCtrl+JLine break for multiline input
Paste modePaste directlyFor code blocks, logs
\n\n

Shift+Enter works out of the box in iTerm2, WezTerm, Ghostty, and Kitty. For other terminals (VS Code, Alacritty, Zed, Warp), run /terminal-setup to install bindings.

← Skills AgentReact Qoder β†’