Skip to content

Commit f4aee08

Browse files
authored
Fix indent
1 parent e2499fd commit f4aee08

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/extensibility/adding-a-tool-window.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ By adding a toolbar in the following manner, you guarantee that its gradients an
6767
</Menus>
6868
```
6969

70-
There are several different kinds of menu. This menu is a toolbar in a tool window, defined by its `type` attribute. The `guid` and `id` settings make up the fully qualified ID of the toolbar. Typically, the `<Parent>` of a menu is the containing group. However, a toolbar is defined as its own parent. Therefore, the same identifier is used for the `<Menu>` and `<Parent>` elements. The `priority` attribute is just '0'.
70+
There are several different kinds of menu. This menu is a toolbar in a tool window, defined by its `type` attribute. The `guid` and `id` settings make up the fully qualified ID of the toolbar. Typically, the `<Parent>` of a menu is the containing group. However, a toolbar is defined as its own parent. Therefore, the same identifier is used for the `<Menu>` and `<Parent>` elements. The `priority` attribute is just '0'.
7171

7272
4. Toolbars resemble menus in many ways. For example, just as a menu may have groups of commands, toolbars may also have groups. (On menus, the command groups are separated by horizontal lines. On toolbars, the groups are not separated by visual dividers.)
7373

7474
Add a `<Groups>` section that contains a `<Group>` element. This defines the group whose ID you declared in the `<Symbols>` section. Add the `<Groups>` section just after the `<Menus>` section.
7575

7676
```xml
7777
<Groups>
78-
<Group guid="guidFirstToolWindowPackageCmdSet" id="ToolbarGroupID" priority="0x0000">
79-
<Parent guid="guidFirstToolWindowPackageCmdSet" id="ToolbarID" />
80-
</Group>
78+
<Group guid="guidFirstToolWindowPackageCmdSet" id="ToolbarGroupID" priority="0x0000">
79+
<Parent guid="guidFirstToolWindowPackageCmdSet" id="ToolbarID" />
80+
</Group>
8181
</Groups>
8282
```
8383

@@ -110,7 +110,7 @@ By adding a toolbar in the following manner, you guarantee that its gradients an
110110

111111
```csharp
112112
public const string guidFirstToolWindowPackageCmdSet = "00000000-0000-0000-0000-0000"; // get the GUID from the .vsct file
113-
public const uint cmdidWindowsMedia = 0x100;
113+
public const uint cmdidWindowsMedia = 0x100;
114114
public const int cmdidWindowsMediaOpen = 0x132;
115115
public const int ToolbarID = 0x1000;
116116
```
@@ -213,13 +213,13 @@ Add a toolbar and a menu command that invokes the **Open File** dialog and plays
213213
window = (FirstToolWindow) this.package.FindToolWindow(typeof(FirstToolWindow), 0, true);
214214
if ((null == window) || (null == window.Frame))
215215
{
216-
throw new NotSupportedException("Cannot create tool window");
216+
throw new NotSupportedException("Cannot create tool window");
217217
}
218218

219219
IVsWindowFrame windowFrame = (IVsWindowFrame)window.Frame;
220-
Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(windowFrame.Show());
220+
Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(windowFrame.Show());
221221

222-
var mcs = this.ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
222+
var mcs = this.ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
223223
var toolbarbtnCmdID = new CommandID(new Guid(FirstToolWindowCommandguidFirstToolWindowPackageCmdSet),
224224
FirstToolWindowCommand.cmdidWindowsMediaOpen);
225225
var menuItem = new MenuCommand(new EventHandler(

0 commit comments

Comments
 (0)