![Sublime Text Tutorial](/sublime_text/images/sublime-text-mini-logo.jpg)
- Sublime Text Tutorial
- Sublime Text - Home
- Sublime Text – Introduction
- Sublime Text – Installation
- Sublime Text – Data Directory
- Creating First Document
- Editing First Text Document
- Patterns of Code Editing
- Sublime Text – Sublime Linter
- Sublime Text – Shortcuts
- Sublime Text – Snippets
- Sublime Text – Macros
- Sublime Text – Key Bindings
- Sublime Text – Column Selection
- Sublime Text – Indentation
- Sublime Text – Base Settings
- Sublime Text – Theme Management
- Understanding Vintage Mode
- Sublime Text – Vintage Commands
- Sublime Text – Testing Javascript
- Sublime Text – Testing Python Code
- Sublime Text – Spell Check
- Sublime Text – Packages
- Sublime Text – Menus
- Sublime Text – Sub Menus of Font
- Sublime Text – Developing Plugin
- Sublime Text – Command Palette
- Debugging PHP Application
- Debugging Javascript Application
- Sublime Text – Batch Processing
- Distraction Free Mode
- SublimeCodeIntel Plugin
- Sublime Text Useful Resources
- Sublime Text - Quick Guide
- Sublime Text - Useful Resources
- Sublime Text - Discussion
Sublime Text - Command Palette
Command Palette includes a list of items or commands which are used frequently. The entries of commands are included in the .sublime-commands file.
Using Command Palette
To open a command palette in Sublime Text editor, you can use the shortcut key combination Ctrl+Shift+P on Windows and Cmd+Shift+P on OSX.
![Using Command Palette](/sublime_text/images/using_command_palette.jpg)
The commonly used commands from the palette are −
- Build with Python
- Install Packages
Build with Python
This will generate all the dependencies and build the specified code of a given Python file.
![Build with Python](/sublime_text/images/build_with_python.jpg)
Install Packages
With this command, we get list of packages which can be installed which is not included earlier.
![Install Packages Command Palette](/sublime_text/images/install_packages_command_palette.jpg)
All the commands included in the command palette are stored in the Packages directory. The basic example of command declared inside the Default.sublime-commands file is shown in the code given below −
[ { "caption": "Project: Save As", "command": "save_project_as" }, { "caption": "Project: Close", "command": "close_project" }, { "caption": "Project: Add Folder", "command": "prompt_add_folder" }, ]
Note − The JSON file includes 3 main keys for every command −
- Name/Caption
- Location
- Content