Command Palette

See also

Reference for Command Palette
Complete documentation on the command palette options.


The command palette is an interactive list whose purpose is to execute commands. The command palette is fed entries by means of .sublime-commands files. Commands that don’t warrant creating a key binding of their own are usually good candidates for inclusion in a .sublime-commands file.


The Command Palette

By default, the command palette includes many useful commands and provides convenient access to individual settings as well as settings files.

To use the command palette:

  1. Press Ctrl+Shift+P
  2. Select a command
  3. Press Enter

The command palette filters entries by context. This means that whenever you open it, you won’t always see all the commands defined in every .sublime-commands file.

Example of a .sublime-commands File

Here’s an excerpt from Packages/Default/Default.sublime-commands:

    { "caption": "Project: Save As", "command": "save_project_as" },
    { "caption": "Project: Close", "command": "close_project" },
    { "caption": "Project: Add Folder", "command": "prompt_add_folder" },

    { "caption": "Preferences: Default File Settings", "command": "open_file", "args": {"file": "${packages}/Default/Base File.sublime-settings"} },
    { "caption": "Preferences: User File Settings", "command": "open_file", "args": {"file": "${packages}/User/Base File.sublime-settings"} },
    { "caption": "Preferences: Default Global Settings", "command": "open_file", "args": {"file": "${packages}/Default/Global.sublime-settings"} },
    { "caption": "Preferences: User Global Settings", "command": "open_file", "args": {"file": "${packages}/User/Global.sublime-settings"} },
    { "caption": "Preferences: Browse Packages", "command": "open_dir", "args": {"dir": "$packages"} }