Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 1.97 KB

File metadata and controls

63 lines (48 loc) · 1.97 KB
title UsedCommands Element
description The UsedCommands element groups UsedCommand elements and other UsedCommands groupings. The UsedCommands element is optional.
ms.date 11/04/2016
ms.topic reference
f1_keywords
UsedCommands
helpviewer_keywords
UsedCommands element (VSCT XML schema)
VSCT XML schema elements, UsedCommands
author tinaschrepfer
ms.author tinali
ms.subservice extensibility-integration

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.

Syntax

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

Attributes and Elements

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

Attributes

Attribute Description
Condition Optional. See Conditional Attributes.

Child Elements

Element Description
UsedCommand Element The command that is implemented by other code.

Parent Elements

Element Description
CommandTable Element Defines 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).

Example

<UsedCommands>
  <UsedCommand guid="guidVSStd97" id="cmdidCut"/>
  <UsedCommand guid="guidVSStd97" id="cmdidCopy"/>
  <UsedCommand guid="guidVSStd97" id="cmdidPaste"/>
</UsedCommands>

See also