UsedCommands Element

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at UsedCommands Element.

The UsedCommands element groups UsedCommand elements and other UsedCommands groupings.

The UsedCommands element is optional. If you do not call commands defined outside your package, you do not have to include this section in your .vsct file.

<UsedCommands condition="Defined(DEBUG)">  
  <UsedCommand ... />  
</UsedCommands>  

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

Attributes

AttributeDescription
ConditionOptional. See Conditional Attributes.

Child Elements

ElementDescription
UsedCommand ElementThe command that is implemented by other code.

Parent Elements

ElementDescription
CommandTable ElementDefines all the elements that represent commands (for example, menu items, menus, toolbars, and combo boxes) that a VSPackage provides to the integrated development environment (IDE).
<UsedCommands>  
  <UsedCommand guid="guidVSStd97" id="cmdidCut"/>  
  <UsedCommand guid="guidVSStd97" id="cmdidCopy"/>  
  <UsedCommand guid="guidVSStd97" id="cmdidPaste"/>  
</UsedCommands>  

UsedCommand Element
Visual Studio Command Table (.Vsct) Files

Show: