AI Tool Shortcuts, Slash Commands and Prompt Parameters (2026)

By Jay, editor

Published: March 15, 2026 · Updated: October 10, 2026

AI chat and coding tools accept several kinds of input that look alike but are handled by different parts of the tool. A keyboard shortcut acts on the application: it opens a panel, starts a chat or accepts a suggestion, and is never part of the text you send. A slash command is typed into the message box, but the tool acts on it rather than passing it on as ordinary text. A prompt parameter or weight is written into the prompt itself, and the image generator reads it from the prompt text as a setting or an emphasis. Context mentions sit in between: you type them, and the tool attaches material to the request.

Knowing the layer tells you where to look an action up, and why the same keys mean different things in two tools. The examples come from this site's reference pages, which follow each vendor's documentation.

LayerHandled byExample
Keyboard shortcutThe app windowCtrl + B (Cmd + B) shows or hides the ChatGPT sidebar
Slash commandThe app or agent, before anything is sent/compact [instructions] in Claude Code
Context mentionThe tool, which attaches material@Branch in Cursor, #selection in Copilot
Prompt parameter or weightThe generator, which reads them from the prompt text--ar in Midjourney, (word:1.5) in Stable Diffusion

Starting over without losing what matters

In the ChatGPT desktop app, Ctrl + N (Cmd + N on a Mac) starts a blank conversation and leaves the previous one in the sidebar history; Ctrl + Shift + N (Cmd + Shift + N) starts a temporary chat instead. In Cursor, Ctrl + N or Ctrl + R (Cmd + N or Cmd + R) starts a new chat.

Coding agents also offer a second option, as a command: keep the thread but shrink it. In Claude Code, /clear [name] starts a new conversation, while /compact [instructions] summarizes the current one to free context and carries on. The optional instructions tell the summary what to focus on, which matters when a long session has settled decisions you want to keep. Cursor's CLI calls the same job /summarize, Gemini CLI calls it /compress, and in Codex CLI /compact cannot run while a task is in progress.

Gemini CLI shows why the layer matters. Ctrl + L clears the screen: it redraws the interface and keeps the conversation. /clear wipes the conversation context as well as the display. Pressing the key when you meant the command leaves the old context in place.

Sending, queueing and interrupting

What happens to a message sent while the AI is still working differs by tool. In Cursor, Enter (Return) queues it until the agent finishes its current task, and Ctrl + Enter (Cmd + Return) sends it at once. In the Claude desktop app, Enter (Return) during a reply also queues the message, while Ctrl + Enter (Cmd + Return) stops the reply and delivers it immediately. Gemini CLI queues with another key: Tab holds a follow-up prompt until the running task ends.

The same combination can mean something else entirely. In Gemini CLI, Enter never adds a line break, and Ctrl + Enter is one of the keys that does, along with Shift + Enter and Ctrl + J; its reference notes that Shift + Enter fails in the macOS Terminal app. In Cursor, once the agent has suggested changes, Ctrl + Enter (Cmd + Return) accepts all of them and Ctrl + Shift + Backspace (Cmd + Shift + Backspace) rejects them all.

Switching model and mode

In the ChatGPT desktop app, Ctrl + Shift + M opens the model picker. It is one of the shortcuts where the Mac keeps the Control key, so the combination is Ctrl + Shift + M on both systems. The typed equivalents are /model, and /reasoning for reasoning effort. In Cursor, Ctrl + / (Cmd + /) loops through the AI models, whereas in ChatGPT on the web the same key shows the shortcut list. In Claude Code, /model [model] saves the choice as your default; to switch for this session only, press s in the picker.

Modes have keys too, and one combination does different jobs. In Cursor, Shift + Tab rotates between the agent modes (the same key on a Mac) and Ctrl + . (Cmd + .) opens the mode menu. In Gemini CLI, Shift + Tab cycles the approval modes default, auto-edit and plan, and Ctrl + Y toggles YOLO mode, in which tool calls go ahead without asking for approval. That is one key press away, so it is worth knowing before you hit it by accident.

Giving the model the right context

Mentions are typed into the message, but the tool resolves them before the request goes out. In Cursor's chat input, @ attaches context. @Branch attaches all the changes on your branch compared with main, the usual context for a review; @Commit covers only what you have not committed yet, and @Terminals attaches terminal output.

GitHub Copilot in VS Code splits the job between two signs. References that start with a hash attach material: #selection adds the highlighted text and is offered only while text is selected, and #<file> adds a file. An at sign addresses a chat participant instead, such as @terminal for shell commands or @vscode for questions about the editor. The Cursor habit of typing @ before a file name therefore does not carry over to Copilot.

In Gemini CLI, @path/to/your/file.txt inserts a file's text into the prompt. Git-ignored files are skipped by default, and a path with spaces needs a backslash before each space, as in @My\ Documents/file.txt.

Keys reach the same result. In Cursor, Ctrl + Shift + L (Cmd + Shift + L) adds the selected code to the current chat. Pasting has two forms: Ctrl + V (Cmd + V) attaches copied code or a log as reference context, and Ctrl + Shift + V (Cmd + Shift + V) puts it into the input box as plain text.

Accepting and rejecting code suggestions

Inline completions are accepted and dismissed with keys, and the core ones agree across editors. In GitHub Copilot for VS Code, Tab accepts the ghost text and Esc dismisses it. Ctrl + Right (Cmd + Right) accepts only the next word, which helps when a suggestion is half right, and Alt + ] (Option + ]) shows the next alternative. Cursor's Tab completion uses the same Tab, Ctrl + Right (Cmd + Right) and Esc, and a second Tab jumps to the next predicted edit location.

The differences are in the details. Copilot's Ctrl + Enter opens a pane of further suggestions in VS Code, and on a Mac that key is Control as well (Ctrl + Return); JetBrains IDEs use Alt + Enter (Option + Return) for the same pane. In Xcode, Tab accepts only the first line of a suggestion, and Option + Tab takes all of it.

Image prompts: the parameters are part of the text

In image generators, the controls that shape the result are written into the prompt. Midjourney expects the description first and parameters last, with no punctuation inside them. --ar sets the aspect ratio in whole numbers, as in --ar 16:9, never decimals; without it the image is square. --no excludes things, with several items separated by commas. --chaos takes 0 to 100 and varies the four results, and --raw switches off the automatic styling.

Model versions are the next thing to check. As of October 2026 the default is V8.2, and several parameters are tied to versions: --quality is missing in V8.1 and V8.2, --oref works only in V7, and the :: multi-prompt separator stops at V6.1 and Niji 6. Check those notes before reusing a prompt from an older guide.

The AUTOMATIC1111 web UI for Stable Diffusion uses brackets for emphasis instead. (word) multiplies the attention on the enclosed words by 1.1, and ((word)) stacks to 1.21. (word:1.5) sets an explicit weight and (word:0.25) weakens a word. Numeric weights work only inside parentheses, so [word], which divides the weight by 1.1, takes no number. Two keywords work only in uppercase: BREAK starts a new 75-token chunk, and a cat AND a dog combines separate prompts.

Where each tool lists its own keys and commands

These products change often, so when a key does not respond, check the list inside the app. ChatGPT on the web shows its shortcuts with Ctrl + / (Cmd + /), and the Code tab of the Claude desktop app uses the same key. In Gemini CLI and Claude Code, ? on an empty prompt toggles the shortcut help; with text already typed, Claude Code inserts a question mark instead. Cursor opens its Keyboard Shortcuts list with the two-step sequence Ctrl + R, Ctrl + S (Cmd + R, Cmd + S).

For commands, typing / in the ChatGPT desktop composer lists them, and further typing narrows the list. In Claude Code a / counts as a command only at the start of a message; typed after a space mid-prompt, it just completes a command name.

Look up a key or command for another tool

Search all shortcuts