Commands and Keyboard Shortcuts
Running a command by name
Choose Edit ⟩ Commands… (shift command P) and type part of a command's name. The panel lists the commands that match, from the menus and from the text actions and snippets that apply to the document in front, each with its shortcut. You do not need to type all of a name, only enough letters of it to tell it from the others. Press enter to run the command at the top of the list, or use up and down to choose another.
This is the quick way to a command you rarely use, and a way to learn a command's shortcut.
When nothing matches what you have typed, the panel offers to send your words to the LatteAI conversation instead.
Choosing your own shortcuts
Choose Espresso ⟩ Preferences… and click Keyboard to see every command with its shortcut: the commands of the menus, text actions, code folding, tabs, and your own snippets.
- Type in the field at the top to find a command by name, or by its shortcut
- Click a shortcut and press the keys you want it to be. Press delete for no shortcut, or escape to leave it as it was.
- Click Reset to give a command its original shortcut again, or Reset All for every command
A shortcut needs command or control in it.
If the keys you press are already the shortcut of another command, Espresso asks what to do:
- Take It gives the shortcut to this command, and the other no longer has it
- Share It leaves both with it. Commands that are never offered together, such as those of different languages, can share a shortcut. Otherwise only one of them will answer to it.