Skip to main content

Command

Enum Command 

Source
pub enum Command {
Show 145 variants Move(Direction, bool), Newline, Type(char), Indent, Outdent, DeleteBackward, DeleteForward, Undo, Redo, Copy, Cut, Paste, SelectAll, SelectNextMatch, Save, CloseTab, NextTab, PreviousTab, SplitPane, FocusNextPane, ToggleSidebar, QuickOpen, GoToSymbol, GoToWorkspaceSymbol, CommandPalette, FindInProject, OpenDiff, AddComment, AskAgent, BlameLine, ReplaceInProject, MarkdownPreview, OpenInBrowser, FocusAgent, BuildPdf, ExportPdf, ComparePlanVersions, ShowInPdf, MaximizePane, MaximizeEditor, ToggleWordWrap, Fold, Unfold, FoldAll, UnfoldAll, ToggleComment, MoveLineUp, MoveLineDown, DuplicateLine, DeleteLine, InsertLineBelow, InsertLineAbove, SelectAllMatches, AddCursorAbove, AddCursorBelow, NextChange, PreviousChange, NextProblem, PreviousProblem, GoToLine, DeleteWordLeft, DeleteWordRight, DeleteToLineStart, DeleteToLineEnd, FindInFile, ReplaceInFile, Format(Format), SendToAgent, MentionSelection, AcceptProposal, RejectProposal, ApprovePlan, SendBackPlan, ShowAgents, CloseDock, TogglePanel, ShowOutline, ShowSourceControl, ShowAgentContext, ToggleTerminal, NewTerminal, ShowComments, ShowInbox, ShowBrowser, ListAgents, RunCell, ClearOutputs, RunAllCells, InterruptKernel, RestartKernel, ShowGuide, NewDocument, ToggleTracking, AcceptChange, RejectChange, ToggleSpelling, AcceptAllChanges, RejectAllChanges, ReviewPreviousTurn, UndoTurn, ShowAgentTask, Commit, OpenClaude, OpenCodex, NextWorkspace, PreviousWorkspace, OpenWorkspace, OpenGemini, OpenTranscript, OpenSettings, SwitchBranch, OpenRecent, RunTask, RunBuildTask, RerunLastTask, GoToDefinition, QuickFix, ShowHover, GoBack, GoForward, GoToReferences, FormatDocument, Complete, RenameSymbol, SelectLines(usize), PasteLine, Stash, StashUntracked, StashStaged, PopStash, ApplyStash, PickStashToPop, DropStash, CompareWith, ShowHistory, FileHistory, AcceptCurrent, AcceptIncoming, AcceptBoth, CompareConflict, NextConflict, PreviousConflict, AbortMerge, Cancel, Quit,
}
Expand description

Anything the user can ask for. Each entry is also a command-palette item unless it needs arguments.

Variants§

§

Move(Direction, bool)

§

Newline

§

Type(char)

Types one character, as a key would.

§

Indent

§

Outdent

§

DeleteBackward

§

DeleteForward

§

Undo

§

Redo

§

Copy

§

Cut

§

Paste

§

SelectAll

§

SelectNextMatch

§

Save

§

CloseTab

§

NextTab

§

PreviousTab

§

SplitPane

§

FocusNextPane

§

ToggleSidebar

§

QuickOpen

§

GoToSymbol

Quick Open with @ typed: the file’s symbols, grouped by kind.

§

GoToWorkspaceSymbol

Quick Open with # typed: symbols across the workspace, from every running server.

§

CommandPalette

§

FindInProject

§

OpenDiff

§

AddComment

§

AskAgent

Writes a comment on what’s selected and sends it to the agent as it’s written.

§

BlameLine

§

ReplaceInProject

§

MarkdownPreview

§

OpenInBrowser

§

FocusAgent

Moves the keyboard between the file and the side pane.

§

BuildPdf

Builds the paper in view, and shows the PDF.

§

ExportPdf

Writes the document as a PDF beside it.

§

ComparePlanVersions

The plan in review against the version before it, as suggestions.

§

ShowInPdf

Scrolls the PDF to the line the caret is on.

§

MaximizePane

The side pane, or the editor in front, takes the window, or gives it back.

§

MaximizeEditor

§

ToggleWordWrap

Wraps long lines of code at the pane’s width, or stops: Alt+Z.

§

Fold

Folds the region the caret is in, or opens the fold: Ctrl+Shift+[ and ].

§

Unfold

§

FoldAll

§

UnfoldAll

§

ToggleComment

§

MoveLineUp

§

MoveLineDown

§

DuplicateLine

§

DeleteLine

VS Code’s Ctrl+Shift+K.

§

InsertLineBelow

A new line below this one, or above, without splitting it: Ctrl+Enter, Ctrl+Shift+Enter.

§

InsertLineAbove

§

SelectAllMatches

Every place the selection or word appears, as cursors: Ctrl+Shift+L.

§

AddCursorAbove

A cursor on the line above or below as well: Ctrl+Alt+Up and Down.

§

AddCursorBelow

§

NextChange

The next suggestion in the document, or the one before: Alt+F5, Shift+Alt+F5.

§

PreviousChange

§

NextProblem

The next problem in the file, or the one before: F8, Shift+F8.

§

PreviousProblem

§

GoToLine

§

DeleteWordLeft

§

DeleteWordRight

§

DeleteToLineStart

§

DeleteToLineEnd

§

FindInFile

§

ReplaceInFile

Find with the replace row open.

§

Format(Format)

§

SendToAgent

§

MentionSelection

§

AcceptProposal

§

RejectProposal

§

ApprovePlan

§

SendBackPlan

§

ShowAgents

§

CloseDock

§

TogglePanel

Shows the side pane with what it showed last, or puts it away.

§

ShowOutline

Shows the document’s headings in the sidebar.

§

ShowSourceControl

Shows what’s changed, to stage and commit, in the sidebar.

§

ShowAgentContext

Shows what an agent works from in the sidebar: its instructions, skills, hooks and what its session read.

§

ToggleTerminal

Brings a terminal up in the pane, starting one if there is none, or puts it away.

§

NewTerminal

Starts another terminal in the pane.

§

ShowComments

Brings the comments up in the pane, or puts them away.

§

ShowInbox

Brings up what waits for the person in every workspace, or puts it away.

§

ShowBrowser

Brings the pane’s browser up, or starts one, or puts it away.

§

ListAgents

Brings the list of agents up in the pane, or puts it away.

§

RunCell

Runs the notebook cell the caret is in.

§

ClearOutputs

Clears what every cell printed.

§

RunAllCells

§

InterruptKernel

Stops what the notebook’s kernel is doing.

§

RestartKernel

Starts the notebook’s kernel again, forgetting what it held.

§

ShowGuide

Opens the guide to getting started.

§

NewDocument

Starts a new document.

§

ToggleTracking

Keeps typing in this document as suggested changes.

§

AcceptChange

§

RejectChange

§

ToggleSpelling

Turns spelling and grammar checks on or off.

§

AcceptAllChanges

§

RejectAllChanges

§

ReviewPreviousTurn

§

UndoTurn

§

ShowAgentTask

The Task page: the agent work here as a timeline.

§

Commit

§

OpenClaude

§

OpenCodex

§

NextWorkspace

Moves to the next workspace in the bar along the bottom.

§

PreviousWorkspace

§

OpenWorkspace

Opens another folder beside this one, as a workspace of its own.

§

OpenGemini

§

OpenTranscript

Opens the transcript of the agent in the side pane as a page.

§

OpenSettings

§

SwitchBranch

§

OpenRecent

Folders and files opened lately, to open again.

§

RunTask

The project’s tasks, to run one in the side pane: VS Code’s Run Task.

§

RunBuildTask

The default build task: Ctrl+Shift+B.

§

RerunLastTask

§

GoToDefinition

§

QuickFix

The language server’s fixes and refactors at the caret: Ctrl+. in VS Code.

§

ShowHover

What the language server says about the symbol at the caret.

§

GoBack

Back to where the last jump left from, as VS Code’s Go Back and Vim’s Ctrl+O.

§

GoForward

§

GoToReferences

§

FormatDocument

§

Complete

§

RenameSymbol

§

SelectLines(usize)

Selects this many whole lines from the cursor.

§

PasteLine

Pastes after the cursor, or below it for a copied line.

§

Stash

Git: puts the changes aside, with untracked files too, or only what’s staged.

§

StashUntracked

§

StashStaged

§

PopStash

Brings the newest stash back and drops it.

§

ApplyStash

Picks a stash to apply, pop or drop.

§

PickStashToPop

§

DropStash

§

CompareWith

Compares the file in view with a branch, a commit or the clipboard.

§

ShowHistory

The repository’s commits, drawn as a graph.

§

FileHistory

The commits that changed the file in view.

§

AcceptCurrent

Settles the conflict at the caret, keeping one side or both.

§

AcceptIncoming

§

AcceptBoth

§

CompareConflict

The conflict at the caret, its two sides in the diff.

§

NextConflict

§

PreviousConflict

§

AbortMerge

Gives up the merge, rebase, cherry-pick or revert under way.

§

Cancel

§

Quit

Trait Implementations§

Source§

impl Clone for Command

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Command

Source§

impl Debug for Command

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Command

Source§

impl Hash for Command

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Command

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Command

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.