CommandPlacements Element


This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The CommandPlacements element groups CommandPlacement elements and other CommandPlacements groupings.

The CommandPlacements element is optional. If no commands, groups, or menus must be included in a secondary location, you do not have to include this section in your .vsct file.


  <CommandPlacement>... </CommandPlacement>  
  <CommandPlacement>... </CommandPlacement>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.


Attribute Description
Condition Optional. See Conditional Attributes.

Child Elements

Element Description
CommandPlacements Groups CommandPlacement elements and other CommandPlacements groupings.
CommandPlacement Element Enables buttons, groups, and menus to be included in more than one group or menu.

Parent Elements

Element Description
CommandTable Element Defines all the elements that represent commands.


  <CommandPlacement guid="guidWidgetPackage" id="cmdidInsertOptions"  
    <Parent guid="cmdGuidWidgetCommands" id="menuIDEditWidget"/>  

See Also

CommandPlacement Element
Visual Studio Command Table (.Vsct) Files