Skip to content

Commit 9948060

Browse files
authored
Merge pull request #11759 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/visualstudio-docs (branch main)
2 parents 6e8a4af + 7cdee19 commit 9948060

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/extensibility/adding-a-toolbar.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,19 @@ This walkthrough shows how to add a toolbar to the Visual Studio IDE.
3838
```xml
3939
<IDSymbol name="Toolbar" value="0x1000" />
4040
<IDSymbol name="ToolbarGroup" value="0x1050" />
41-
4241
```
4342

4443
2. At the top of the Commands section, create a Menus section. Add a Menu element to the Menus section to define your toolbar.
4544

4645
```xml
4746
<Menus>
48-
<Menu guid="guidToolbarTestCommandPackageCmdSet" id="Toolbar"
49-
type="Toolbar" >
47+
<Menu guid="guidToolbarTestCommandPackageCmdSet" id="Toolbar" type="Toolbar">
5048
<CommandFlag>DefaultDocked</CommandFlag>
5149
<Strings>
5250
<ButtonText>Test Toolbar</ButtonText>
5351
<CommandName>Test Toolbar</CommandName>
5452
</Strings>
55-
</Menu>
53+
</Menu>
5654
</Menus>
5755
```
5856

@@ -61,9 +59,8 @@ This walkthrough shows how to add a toolbar to the Visual Studio IDE.
6159
3. In the [Groups](../extensibility/groups-element.md) section, after the existing group entry, define a [Group](../extensibility/group-element.md) element to contain the commands for the toolbar.
6260

6361
```xml
64-
<Group guid="guidToolbarTestCommandPackageCmdSet" id="ToolbarGroup"
65-
priority="0x0000">
66-
<Parent guid="guidToolbarTestCommandPackageCmdSet" id="Toolbar"/>
62+
<Group guid="guidToolbarTestCommandPackageCmdSet" id="ToolbarGroup" priority="0x0000">
63+
<Parent guid="guidToolbarTestCommandPackageCmdSet" id="Toolbar" />
6764
</Group>
6865
```
6966

@@ -72,7 +69,7 @@ This walkthrough shows how to add a toolbar to the Visual Studio IDE.
7269
```xml
7370
<Button guid="guidToolbarTestCommandPackageCmdSet" id="ToolbarTestCommandId" priority="0x0100" type="Button">
7471
<Parent guid= "guidToolbarTestCommandPackageCmdSet" id="ToolbarGroup" />
75-
<Icon guid="guidImages" id="bmpPic1" />
72+
<Icon guid="guidImages" id="bmpPic1" />
7673
<Strings>
7774
<ButtonText>Invoke ToolbarTestCommand</ButtonText>
7875
</Strings>

0 commit comments

Comments
 (0)