You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: mac/customizing-the-ide.md
+5-11
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,9 @@ Pads may also be opened automatically by various commands, such as the **Find in
87
87
Pads can be moved and arranged throughout your workflow in whatever way is most useful to you. For example, they can be docked on any side of the document editor, adjacent to another pad, above or below another pad, or as a set of tabbed pads enabling you to quickly switch between them.
88
88
89
89
For frequently used pads, you can also completely detach a pad from the Visual Studio for Mac window, and create a separate window for that pad.
90
-
90
+
91
91
Pads can be hidden and closed by the toggles in the top-right corner of each pad:
92
-
92
+
93
93

94
94
95
95
Auto-hidden pads are docked to the sides of the workspace making them easily accessible when they are required. Hovering over the pad will display it again, and it will be hidden when the mouse and keyboard focus leaves it.
@@ -111,23 +111,17 @@ However, it is possible to create a new layout by using the **View > Save Curren
111
111

112
112
113
113
### Side-by-side editing support
114
-
114
+
115
115
Visual Studio for Mac allows you to open text editors side-by-side, or to have an editor as a detached floating window.
116
116
117
117
2-column mode can be enabled through the View menu item by selecting **View > Editor Columns > 2 columns**, or by dragging an editor tab to one of the edges of the editor area, as shown below:
Editor tabs can be dragged out of the document area to create a floating editor window. This floating window also supports side-by-side editors, and can contain several editor tabs:
122
122
123
123

124
-
124
+
125
125

126
126
127
127
To revert to a single open editor, select **View > Editor Columns > 1 column**.
Copy file name to clipboardexpand all lines: mac/data-visualizations.md
+12-13
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ author: asb3993
5
5
ms.author: amburns
6
6
ms.date: 04/14/2017
7
7
ms.topic: article
8
+
ms.technology: vs-ide-debug
8
9
ms.assetid: 527E6BEC-EF15-4002-ACB5-62AE1C16F6B7
9
10
---
10
11
@@ -15,25 +16,25 @@ Visual Studio for Mac includes UI support for the debugger, allowing visualizati
15
16
Visualizers in the debug **Local** pad can be displayed by clicking on the preview icon that appears to the right of the value, when the user hovers over the row:
A Size/SizeF, or CGSize in iOS and Mac, will render as a rectangle. It is drawn to scale until a dimension grows past 250px, at which point it will scale the rectangle with the largest dimension as 250px:
A Rectangle/RectangleF, or CGRect in iOS and Mac, will display the dimensions and origin. Similar to Size, it is drawn to scale, until a dimension grows past 250px:
Coordinates are plotted on a map, with the location pinned to the center:
39
40
@@ -43,21 +44,21 @@ Coordinates are plotted on a map, with the location pinned to the center:
43
44
This will display UIColor, CGColor, and Color properties, depicting the color preview, RGBA components, Hue-Saturation-Lightness values, and the hex value of the color:
IEnumerable enumerates all values; the values of each can be viewed by clicking the **Show** Values button. The IEnumerable option will not display values for objects such as `Array`, `ArrayList`, `List<>`, `Dictionary<,>` as these have their own debugger visualizers.
Then deploy your application by pressing the **Play** button, or **Cmd + return**. When you hit a breakpoint, the code will be highlighted yellow:
50
51
51
52

52
-
53
+
53
54
Debugging tools, such as the one used to inspect the values of objects, can be used at this point to get more information about what is happening in your code:
You can also set rules dictating the circumstances under which a breakpoint should occur, this is known as adding a *conditional breakpoint*. To set a conditional breakpoint, access the **Breakpoint Properties window**, which can be done in two ways:
60
61
61
62
62
63
* To add a new conditional breakpoint, right-click on the editor margin, to the left of the line number for the code you wish to set a breakpoint on, and select New Breakpoint:
* To add a condition to an existing breakpoint, right-click on the breakpoint and select **Breakpoint Properties**, or, in the **Breakpoints Pad**, select the Edit Breakpoint button illustrated below:
68
+
* To add a condition to an existing breakpoint, right-click on the breakpoint and select **Breakpoint Properties**, or, in the **Breakpoints Pad**, select the Edit Breakpoint button illustrated below:
68
69
69
70
70
71

@@ -73,7 +74,7 @@ You can also set rules dictating the circumstances under which a breakpoint shou
73
74
You can then enter the condition under which you want the breakpoint to occur:
When a breakpoint has been reached, the Debug tools enable you to get control over the program’s execution. Visual Studio for Mac will display four buttons, allowing you to run and step through the code. In Visual Studio for Mac, they will look like the following:
@@ -96,5 +97,3 @@ Since this feature consumes more memory during debugging, it is turned off by de
96
97
To enable this feature, browse to **Visual Studio for Mac > Preferences > Debugger** and ensure that the "**Debug project code only; do not step into framework code.**" option is **unselected**, as illustrated below:
97
98
98
99

Copy file name to clipboardexpand all lines: mac/extending-visual-studio-mac-walkthrough.md
+13-12
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,16 @@
1
1
---
2
-
title: "Extending Visual Studio for Mac Walkthrough"
2
+
title: "Extending Visual Studio for Mac Walkthrough"
3
3
author: asb3993
4
4
ms.author: amburns
5
5
ms.date: 04/14/2017
6
6
ms.topic: article
7
+
ms.technology: vs-ide-sdk
7
8
ms.assetid: 7D00512B-9688-4D8D-87A7-F04F207E3D02
8
9
---
9
10
10
11
# Extending Visual Studio for Mac Walkthrough
11
12
12
-
This topic guides you through building [a simple extension package](https://github.com/mjh4/AddIns/tree/master/DateInserter). The extension package will create a new Command in Visual Studio for Mac’s Edit menu that allows the user to insert the current date and time into an open text document.
13
+
This topic guides you through building [a simple extension package](https://github.com/mjh4/AddIns/tree/master/DateInserter). The extension package will create a new Command in Visual Studio for Mac’s Edit menu that allows the user to insert the current date and time into an open text document.
13
14
14
15
This example uses the Add-in Maker. The Add-In Maker creates a new Project template and populates it with the required files for our custom extension package.
15
16
@@ -37,7 +38,7 @@ This example uses the Add-in Maker. The Add-In Maker creates a new Project templ
37
38
38
39
7. Remove the template code in `Manifest.addin.xml` and replace it with the following:
@@ -78,7 +79,7 @@ This example uses the Add-in Maker. The Add-In Maker creates a new Project templ
78
79
79
80
}
80
81
}
81
-
}
82
+
}
82
83
```
83
84
84
85
We’ll expand these two placeholder methods later.
@@ -103,7 +104,7 @@ This example uses the Add-in Maker. The Add-In Maker creates a new Project templ
103
104
104
105
12. At this point, you should have a working extension package. You can test it out by saving your work and running the application. The IDE will launch a new instance of Visual Studio for Mac with the new extension package installed. If you navigate to the **Edit menu**, you’ll see that Visual Studio for Mac has a new option called **Insert Date**, as illustrated by the screenshot below:
105
106
106
-

107
+

107
108
108
109
Note that selecting Insert Date from the menu has no effect as the current implementation only has placeholder methods.
109
110
@@ -119,14 +120,14 @@ This example uses the Add-in Maker. The Add-In Maker creates a new Project templ
119
120
14. Update the Command’s `Run` method to insert the date and time with the following code:
120
121
121
122
``` cs
122
-
protected override void Run () {
123
-
var editor = IdeApp.Workbench.ActiveDocument.Editor;
124
-
var date = DateTime.Now.ToString ();
125
-
editor.InsertAtCaret (date);
126
-
127
-
}
123
+
protected override void Run () {
124
+
var editor = IdeApp.Workbench.ActiveDocument.Editor;
125
+
var date = DateTime.Now.ToString ();
126
+
editor.InsertAtCaret (date);
127
+
128
+
}
128
129
```
129
130
130
131
15. Finally, let’s run our extension package to test it. In the new instance of Visual Studio for Mac, select **Edit > Insert Date**. The current date and time is inserted at our caret, as illustrated by the screenshot below:
131
132
132
-

133
+

0 commit comments