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: docs/get-started/tutorial-editor.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
title: Introduction to editing
3
3
ms.date: 11/30/2017
4
4
ms.prod: visual-studio-dev15
5
-
ms.technology: vs-ide-general
6
-
ms.topic: quickstart
5
+
ms.technology: vs-acquisition
6
+
ms.topic: tutorial
7
7
author: gewarren
8
8
ms.author: gewarren
9
9
manager: douge
@@ -30,7 +30,7 @@ Start by creating a new file and adding some code to it.
30
30
31
31
A new file opens in the editor with the skeleton of a C# class. (Notice that we don't have to create a full Visual Studio project to gain some of the benefits that the code editor offers; all you need is a code file!)
32
32
33
-

33
+

34
34
35
35
## Use code snippets
36
36
@@ -40,23 +40,23 @@ Visual Studio provides useful *code snippets* that you can use to quickly and ea
40
40
41
41
A pop-up dialog box appears with information about the `svm` code snippet.
42
42
43
-

43
+

44
44
45
45
1. Press **Tab** twice to insert the code snippet.
46
46
47
47
You see the `static void Main()` method signature get added to the file. The [Main()](/dotnet/csharp/programming-guide/main-and-command-args/) method is the entry point for C# applications.
48
48
49
49
The available code snippets vary for different programming languages. You can look at the available code snippets for your language by choosing **Edit** > **IntelliSense** > **Insert Snippet**, and then choosing your language's folder. For C#, the list looks like this:
The list includes snippets for creating a [class](/dotnet/csharp/programming-guide/classes-and-structs/classes), a [constructor](/dotnet/csharp/programming-guide/classes-and-structs/constructors), a [for](/dotnet/csharp/language-reference/keywords/for) loop, an [if](/dotnet/csharp/language-reference/keywords/if-else) or [switch](/dotnet/csharp/language-reference/keywords/switch) statement, and more.
54
54
55
55
## Comment out code
56
56
57
-
The toolbar, which is the row of buttons under the menu bar in Visual Studio, can help make you more productive as you code. For example, you can toggle IntelliSense completion mode ([IntelliSense](using-intellisense.md) is a coding aid that displays a list of matching methods, amongst other things), increase or decrease a line indent, or comment out code that you don't want to compile. In this section, we'll comment out some code.
57
+
The toolbar, which is the row of buttons under the menu bar in Visual Studio, can help make you more productive as you code. For example, you can toggle IntelliSense completion mode ([IntelliSense](../ide/using-intellisense.md) is a coding aid that displays a list of matching methods, amongst other things), increase or decrease a line indent, or comment out code that you don't want to compile. In this section, we'll comment out some code.
1. Paste the following code into the `Main()` method body.
62
62
@@ -84,15 +84,15 @@ The toolbar, which is the row of buttons under the menu bar in Visual Studio, ca
84
84
85
85
1. We're not using the `morewords` variable, but we may use it later so we don'twanttocompletelydeleteit. Instead, let's comment out those lines. Select the entire definition of `morewords` to the closing semi-colon, and then choose the **Comment out the selected lines** button on the toolbar. If you prefer to use the keyboard, press **Ctrl**+**K**, **Ctrl**+**C**.
TheC# commentcharacters `//` are added to the beginning of each selected line to comment out the code.
90
90
91
91
## Collapse code blocks
92
92
93
93
Wedon't want to see the empty [constructor](/dotnet/csharp/programming-guide/classes-and-structs/constructors) for `Class1` that was generated, so to unclutter our view of the code, let'scollapseit. Choosethesmallgrayboxwiththeminussigninsideitinthemarginofthefirstlineoftheconstructor. Or, ifyou're a keyboard user, place the cursor anywhere in the constructor code and press **Ctrl**+**M**, **Ctrl**+**M**.
Thecodeblockcollapsestojustthefirstline, followedbyanellipsis (`...`). Toexpandthecodeblockagain, clickthesamegrayboxthatnowhasaplussigninit, orpress**Ctrl**+**M**, **Ctrl**+**M**again. Thisfeatureiscalled [Outlining](../ide/outlining.md) andisespeciallyuseful when you're collapsing long methods or entire classes.
98
98
@@ -104,7 +104,7 @@ The Visual Studio editor makes it easy to inspect the definition of a type, meth
104
104
105
105
Apop-upwindowappearswiththedefinitionofthe `String` class. You can scroll within the pop-up window, or even peek at the definition of another type from the peeked code.
1. Close the peeked definition window by choosing the small box with an "x" at the top right of the pop-up window.
110
110
@@ -120,7 +120,7 @@ The Visual Studio editor makes it easy to inspect the definition of a type, meth
120
120
121
121
You see IntelliSense show you **Quick Info** about the `query` symbol.
122
122
123
-

123
+

124
124
125
125
1. To insert the rest of the word `query` by using IntelliSense's word completion functionality, press **Tab**.
126
126
@@ -143,7 +143,7 @@ Nobody gets code right the first time, and one of the things you might have to c
143
143
144
144
1. Enter the desired name **words**. Notice that the reference to `words` in the query is also automatically renamed. Before you press **Enter**, select the **Include comments** checkbox in the **Rename** pop-up box.
145
145
146
-

146
+

147
147
148
148
1. Press **Enter**.
149
149
@@ -152,7 +152,7 @@ Nobody gets code right the first time, and one of the things you might have to c
152
152
## Next steps
153
153
154
154
> [!div class="nextstepaction"]
155
-
> [Learn about projects and solutions](../ide/quickstart-projects-solutions.md)
155
+
> [Learn about projects and solutions](../get-started/tutorial-projects-solutions.md)
Copy file name to clipboardExpand all lines: docs/get-started/tutorial-projects-solutions.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
title: Introduction to projects and solutions
3
3
ms.date: 12/11/2017
4
4
ms.prod: visual-studio-dev15
5
-
ms.technology: vs-ide-general
6
-
ms.topic: quickstart
5
+
ms.technology: vs-acquisition
6
+
ms.topic: tutorial
7
7
author: gewarren
8
8
ms.author: gewarren
9
9
manager: douge
@@ -37,7 +37,7 @@ We'll start our exploration by creating an empty solution. After you get to know
37
37
38
38
1. In the left pane, expand **Other Project Types**, then choose **Visual Studio Solutions**. In the center pane, choose the **Blank Solution** template. Name your solution **QuickSolution**, then choose the **OK** button.
39
39
40
-

40
+

41
41
42
42
The **Start Page** closes, and a solution appears in **Solution Explorer** on the right-hand side of the Visual Studio window. You'll probably use **Solution Explorer** often, to browse the contents of your projects.
43
43
@@ -56,7 +56,7 @@ Now let's add our first project to the solution. We'll start with an empty proje
56
56
> [!NOTE]
57
57
> If you don't see **Visual C#** in the left pane of the dialog box, you need to install the **.NET desktop development** Visual Studio *workload*. Visual Studio uses workload-based installation to only install the components you need for the type of development you do. An easy way to install a new workload is to choose the **Open Visual Studio Installer** link in the bottom left corner of the **Add New Project** dialog box. After Visual Studio Installer launches, choose the **.NET desktop development** workload and then the **Modify** button.
58
58
59
-

59
+

60
60
61
61
## Add an item to the project
62
62
@@ -110,15 +110,15 @@ Let's add a unit test project to our solution. This time we'll start from a proj
110
110
111
111
A second project is added to **Solution Explorer**, and a file named *UnitTest1.vb* opens in the editor. *.vb* is the file extension that is given to Visual Basic code files.
112
112
113
-

113
+

114
114
115
115
## Add a project reference
116
116
117
117
We're going to use the new unit test project to test our method in the **QuickDate** project, so we need to add a reference to that project. This creates a *build dependency* between the two projects, meaning that when you build the solution, **QuickDate** is built before **QuickTest**.
118
118
119
119
1. Choose the **References** node in the **QuickTest** project, and from the right-click or context menu, choose **Add Reference**.
@@ -162,15 +162,15 @@ The line in the *Calendar.cs* file that contains the <xref:System.Runtime.Compil
162
162
163
163
The *property pages* for the project open on the **Application** tab. The property pages contain various settings for the project. Notice that the assembly name of the **QuickTest** project is indeed "QuickTest". If you wanted to change it, this is where you'd do that. Then, when you build the test project, the name of the resulting binary file would change from *QuickTest.dll* to whatever you chose.
1. Explore some of the other tabs of the project's property pages, such as **Compile** and **Settings**. These tabs are different for different types of projects.
168
168
169
169
## Next steps
170
170
171
171
If you want to check that your unit test is working, choose **Test** > **Run** > **All Tests** from the menu bar. A window called **Test Explorer** opens, and you should see that the **TestGetCurrentDate** test passes.
172
172
173
-

173
+

174
174
175
175
> [!TIP]
176
176
> If **Test Explorer** doesn't open automatically, open it by choosing **Test** > **Windows** > **Test Explorer** from the menu bar.
Copy file name to clipboardExpand all lines: docs/ide/visual-studio-ide.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The Visual Studio *integrated development environment* is a creative launching p
22
22
23
23
This image shows Visual Studio with an open project and several key tool windows you'll likely use:
24
24
25
-
-[**Solution Explorer**](../ide/solutions-and-projects-in-visual-studio.md) (top right) lets you view, navigate, and manage your code files. **Solution Explorer** can help organize your code by grouping the files into [solutions and projects](quickstart-projects-solutions.md).
25
+
-[**Solution Explorer**](../ide/solutions-and-projects-in-visual-studio.md) (top right) lets you view, navigate, and manage your code files. **Solution Explorer** can help organize your code by grouping the files into [solutions and projects](../get-started/tutorial-projects-solutions.md).
26
26
27
27
- The [editor window](../ide/writing-code-in-the-code-and-text-editor.md) (center), where you'll likely spend a majority of your time, displays file contents. This is where you can edit code or design a user interface such as a window with buttons and text boxes.
28
28
@@ -258,9 +258,9 @@ To learn about other ways you can personalize the IDE, see [Personalize Visual S
258
258
259
259
Explore Visual Studio further by following along with one of these introductory articles:
260
260
261
-
- Get acquainted with the code editor in [Learn to use the code editor](quickstart-editor.md)
261
+
- Get acquainted with the code editor in [Learn to use the code editor](../get-started/tutorial-editor.md)
262
262
263
-
- Learn how Visual Studio organizes code in [Learn about projects and solutions](quickstart-projects-solutions.md)
263
+
- Learn how Visual Studio organizes code in [Learn about projects and solutions](../get-started/tutorial-projects-solutions.md)
264
264
265
265
If you're ready to dive into more coding, one of the following language-specific quickstarts is a good next step:
0 commit comments