AI Dev Guide
Terminal Shortcuts

Essential Keyboard Shortcuts

The most useful keyboard shortcuts for terminal, VS Code, and Cursor to speed up your AI development workflow

The 3 You Must Know

Forget everything else — just remember these three.

ShortcutActionWhen to use
Ctrl + CForce stop a running commandWhen a command won’t stop
Ctrl + LClear the screenWhen the screen is full of text
TabAuto-complete file/command namesWhen typing long file names

Ctrl + C is the most important. If you think something is broken, try this first.

Terminal Shortcuts

Cursor Movement

ShortcutAction
Ctrl + AJump to start of line
Ctrl + EJump to end of line
Ctrl + WDelete word before cursor
Ctrl + UDelete from cursor to start of line
Ctrl + KDelete from cursor to end of line

Much faster than deleting everything and retyping when you make a mistake in a long command.

History

ShortcutAction
Up / DownNavigate command history
Ctrl + RSearch command history

Ctrl + R is great. Type part of a previous command and it finds the match.

VS Code / Cursor (Shared)

VS Code and Cursor share almost identical shortcuts (Cursor is based on VS Code).

Basics

Shortcut (Mac)Action
Cmd + PQuick open file by name
Cmd + Shift + PCommand palette
Cmd + BToggle sidebar
Ctrl + `Toggle terminal
Cmd + ,Open settings

Cmd + P is the most important. Far faster than clicking through folders.

Editing

Shortcut (Mac)Action
Cmd + DSelect next occurrence of word
Cmd + Shift + KDelete line
Option + Up/DownMove line up/down
Cmd + /Toggle comment
Cmd + Shift + FSearch entire project

Multi-cursor

Shortcut (Mac)Action
Option + ClickAdd cursor
Cmd + DAdd cursor to next occurrence
Cmd + Shift + LSelect all occurrences

Great for renaming variables across a file.

Cursor-Specific

Shortcut (Mac)Action
Cmd + KAsk AI to generate code
Cmd + LOpen AI chat
Cmd + IOpen Composer (multi-file editing)

Claude Code (in Terminal)

Claude Code runs in the terminal, so terminal shortcuts work as-is.

ActionWhat it does
EnterSend message
EscapeInterrupt current response
/helpShow help
/clearReset conversation
Ctrl + CCancel running operation

For Windows Users

To translate Mac shortcuts to Windows:

MacWindows
CmdCtrl
OptionAlt
Ctrl (terminal)Ctrl (same)

Example: Cmd + P becomes Ctrl + P

How to Learn These

Don’t try to memorize everything at once.

  1. Start with just Ctrl + C, Tab, Cmd + P
  2. Add Ctrl + R (history search) when you’re comfortable
  3. Pick up Cmd + D and Option + Up/Down as you edit more

When you hit a situation and think “there must be a shortcut for this” — that’s when you’ll remember.

Next Steps