Skip to content

Latest commit

 

History

History
67 lines (56 loc) · 3.47 KB

commandtable-element.md

File metadata and controls

67 lines (56 loc) · 3.47 KB
titledescriptionms.datems.topicf1_keywordshelpviewer_keywordsauthorms.authormanagerms.subservice
CommandTable Element
CommandTable is the root element of the .vsct file, which defines the layout and type of the commands that a VSPackage provides to the IDE.
11/04/2016
reference
CommandTable
CommandTable element (VSCT XML schema)
VSCT XML schema elements, CommandTable
maiak
maiak
mijacobs
extensibility-integration

CommandTable element

CommandTable is the root element of the .vsct file. This is the file that defines the actual layout and type of the commands that a VSPackage provides to the IDE. Commands may include menu items, menus, toolbars, and combo boxes. For more information, see Visual Studio command table (.vsct) files.

Syntax

<CommandTablexmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable"xmlns:xs="http://www.w3.org/2001/XMLSchema" > <Extern>... </Extern> <Include>... </Include> <Define>... </Define> <Commands>... </Commands> <CommandPlacements>... </CommandPlacements> <VisibilityConstraints>... </VisibilityConstraints> <KeyBindings>... </KeyBindings> <UsedCommands... </UsedCommands> <Symbols>... </Symbols> </CommandTable>

Attributes and elements

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

Attributes

AttributeDescription
xmlnsRequired. XML namespaces:

xmlns=http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable

xmlns:xs="http://www.w3.org/2001/XMLSchema"
languageOptional. The language attribute may be used to specify the default language of all <Strings> elements in the command table. If the language is not specified, the language of the current process will be used:

language="en-us"

Child Elements

ElementDescription
Extern elementOptional. Contains preprocessor directives for the compiler.
Include elementOptional. Contains paths to any files to include in the compile.
Define elementOptional. Defines a symbol given its name and value.
Commands elementOptional. The parent element defining all the commands for the VSPackage that contains all of the other elements.
CommandPlacements elementOptional. Defines where on the command bar the commands are to be placed.
VisibilityConstraints elementOptional. Determines the static visibility of commands and toolbars.
KeyBindings elementOptional. Specifies the shortcut key combinations, if any, for the commands.
UsedCommands elementOptional. Allows a VSPackage to optionally implement its own version of functionality originally supported by other VSPackages.
Symbols elementOptional. Contains any symbol data -- GUIDs, IDs, and so forth -- for the compiler.

Parent elements

ElementDescription
None

See also

close