What problem does it solve?
Guidelines for contributing commands to VS Code extensions, ensuring consistent naming, visibility, localization, and best practices across extensions.
Core Features & Use Cases
- Define a command with a mandatory title and optional category, enabling consistent discovery in the Command Palette.
- Distinguish between regular commands and side-bar commands; follow the naming pattern for side-bar commands (prefix with _ and suffix with #sideBar) and include an icon and visibility rules.
- Provide guidance on ordering, enablement, and localization to support multi-view integrations and professional collaboration.
- Use cases include adding new commands to a VS Code extension and exposing commands in custom views with proper grouping and visibility.
Quick Start
Create a new command by specifying a title and category, and, if it is a side-bar command, prefix the command name with an underscore and suffix with #sideBar, include an icon, and declare visibility conditions.