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
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Introduction to editing in the code editor
3
3
description: Use the code editor in Visual Studio to add code to a file, and also how to write code, navigate to it, and refactor it.
4
-
ms.date: 12/18/2023
4
+
ms.date: 1/23/2025
5
5
ms.subservice: general-ide
6
6
ms.custom: vs-acquisition
7
7
ms.topic: tutorial
@@ -19,7 +19,7 @@ In this 10-minute introduction to the code editor in Visual Studio, we'll add co
19
19
::: moniker range="vs-2019"
20
20
21
21
> [!TIP]
22
-
> If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) page to install it for free.
22
+
> If you don't have Visual Studio, go to [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) to install it for free.
23
23
24
24
::: moniker-end
25
25
@@ -44,11 +44,11 @@ Start by creating a new file and adding some code to it.
44
44
45
45
::: moniker range="vs-2019"
46
46
47
-
1. Open Visual Studio. Press **Esc** or click**Continue without code** on the start window to open the development environment.
47
+
1. Open Visual Studio. Press **Esc** or select**Continue without code** on the start window to open the development environment.
48
48
49
-
1. From the **File** menu on the menu bar, choose**New** > **File**.
49
+
1. From the **File** menu on the menu bar, select**New** > **File**.
50
50
51
-
1. In the **New File** dialog box, under the **General** category, choose**Visual C# Class**, and then choose**Open**.
51
+
1. In the **New File** dialog box, under the **General** category, select**Visual C# Class**, and then select**Open**.
52
52
53
53
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!)
54
54
@@ -58,11 +58,11 @@ Start by creating a new file and adding some code to it.
58
58
59
59
::: moniker range=">=vs-2022"
60
60
61
-
1. Open Visual Studio. Select the **Esc** key, or choose**Continue without code** on the start window, to open the development environment.
61
+
1. Open Visual Studio. Select the **Esc** key, or select**Continue without code** on the start window, to open the development environment.
62
62
63
-
1. From the **File** menu on the menu bar, choose**New** > **File**, or select the **Ctrl**+**N** keys.
63
+
1. From the **File** menu on the menu bar, select**New** > **File**, or select the **Ctrl**+**N** keys.
64
64
65
-
1. In the **New File** dialog box, under the **General** category, choose**C# Class**, and then choose**Open**.
65
+
1. In the **New File** dialog box, under the **General** category, select**C# Class**, and then select**Open**.
66
66
67
67
A new file opens in the editor with the skeleton of a C# class.
68
68
@@ -88,6 +88,22 @@ Let's use Copilot to generate code suggestions:
88
88
89
89
:::image type="content" source="media/vs-2022/tutorial-editor/github-copilot-suggestions-visual-studio.gif" alt-text="Animated screenshot that shows the code suggestions generated by GitHub Copilot for the user comment." lightbox="media/vs-2022/tutorial-editor/github-copilot-suggestions-visual-studio.gif":::
90
90
91
+
Let's use Copilot Chat to submit a coding-related question as a prompt:
92
+
93
+
1. Select the **GitHub Copilot** badge in the upper-right corner of the IDE.
94
+
2. Select **Open Chat Window** from the dropdown.
95
+
3. Enter the following prompt in the chat window:
96
+
97
+
```copilot-prompt
98
+
99
+
Generate sample code for a simple C# method to add two numbers.
100
+
101
+
```
102
+
103
+
4. Copilot Chat generates sample code in response to your prompt.
104
+
105
+
GitHub Copilot is powered by AI, so surprises and mistakes are possible. For more information, see [GitHub Copilot FAQs](https://github.com/features/copilot#faq).
106
+
91
107
Get started with [GitHub Copilot in Visual Studio](../ide/visual-studio-github-copilot-install-and-states.md). Note that it requires Visual Studio 2022 version 17.8 or later.
92
108
93
109
::: moniker-end
@@ -380,6 +396,8 @@ Nobody gets code right the first time, and one of the things you might have to c
Copy file name to clipboardExpand all lines: docs/ide/quickstart-ide-orientation.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "Tour the Visual Studio IDE"
3
3
description: Learn about some of the windows, menus, and other UI features of the Visual Studio integrated development environment (IDE).
4
4
ms.custom: vs-acquisition
5
5
titleSuffix: ''
6
-
ms.date: 12/18/2023
6
+
ms.date: 1/23/2025
7
7
ms.topic: conceptual
8
8
author: anandmeg
9
9
ms.author: meghaanand
@@ -21,16 +21,16 @@ To develop any type of app or learn a language, you work in the Visual Studio In
21
21
22
22
To get started, [download Visual Studio](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) and install it on your system.
23
23
24
-
In the Visual Studio Installer, you choose and install *workloads*, which are groups of features you need for the programming languages or platforms you want. To follow along this tutorial, be sure to select the **.NET desktop development** workload during installation.
24
+
In the Visual Studio Installer, you choose and install *workloads*, which are groups of features you need for the programming languages or platforms you want. To follow along this article, be sure to select the **.NET desktop development** workload during installation.
25
25
26
26
:::image type="content" source="media/vs-2022/dot-net-development-workload.png" alt-text="Screenshot of the .NET desktop development workload selected in the Visual Studio Installer.":::
27
27
28
28
If you already have Visual Studio, you can add the **.NET desktop development** workload as follows:
29
29
* Launch the Visual Studio Installer.
30
30
* If prompted, allow the installer to update itself.
31
-
* If an update for Visual Studio is available, an Update button is shown. Select it to update before modifying the installation.
32
-
* Find your Visual Studio installation and select the Modify button.
33
-
* If not selected already, select the **.NET desktop development** workload and select the Modify button. Otherwise, just close the dialog window.
31
+
* If an update for Visual Studio is available, an **Update** button is shown. Select it to update before modifying the installation.
32
+
* Find your Visual Studio installation and select the **Modify** button.
33
+
* If not selected already, select the **.NET desktop development** workload and select the **Modify** button. Otherwise, just close the dialog window.
34
34
35
35
::: moniker range="vs-2019"
36
36
@@ -162,12 +162,12 @@ To explore Visual Studio's features, let's create a new project.
162
162
163
163
:::image type="content" source="media/vs-2022/menu-bar.png" alt-text="Screenshot of the Menu bar in Visual Studio 2022.":::
164
164
165
-
* Get AI assistance with [GitHub Copilot](visual-studio-github-copilot-extension.md) directly in the editor with context-aware code completions, suggestions, code explanations, and more. For example, you can receive code suggestions by writing a natural language comment describing what you want the code to do.
165
+
* Get AI assistance with [GitHub Copilot](visual-studio-github-copilot-extension.md) directly in the editor with context-aware code completions, suggestions, code explanations, and more. For example, you can receive code suggestions by writing a natural language comment describing what you want the code to do, or ask coding-related questions in chat.
166
166
167
167
:::image type="content" source="media/vs-2022/quickstart-ide-orientation/github-copilot-extension-example.gif" alt-text="Screenshot of the GitHub Copilot extension in Visual Studio 2022." lightbox="media/vs-2022/quickstart-ide-orientation/github-copilot-extension-example.gif":::
Learn more about [AI-assisted development in Visual Studio](ai-assisted-development-visual-studio.md).
173
173
@@ -245,7 +245,7 @@ Visual Studio has many built-in debugging capabilities. Set a break point at any
245
245
```csharp
246
246
Console.WriteLine("\nWhat is your name?");
247
247
varname=Console.ReadLine();
248
-
```
248
+
```
249
249
250
250
1. Select the **Start Debugging** button (green arrow) in the debug toolbar in Visual Studio to run your app.
251
251
@@ -264,6 +264,8 @@ Visual Studio has many built-in debugging capabilities. Set a break point at any
264
264
varname=Console.ReadLine();
265
265
```
266
266
267
+
As you type, you can also press `Tab` to accept the code suggestions.
268
+
267
269
1. Select the **Start Debugging** button (green arrow) in the debug toolbar in Visual Studio to run your app.
268
270
269
271
:::image type="content" source="media/vs-2022/ide-tour-menu-run-app-button.png" alt-text="Screenshot of the Start Debugging button in the debug toolbar.":::
@@ -288,3 +290,5 @@ You looked at just a few of the features of Visual Studio to get acquainted with
288
290
-[More features of Visual Studio](../ide/advanced-feature-overview.md)
289
291
-[Change theme and font colors](../ide/how-to-change-fonts-and-colors-in-visual-studio.md)
290
292
-[Optimize the Visual Studio experience on Microsoft Dev Box](/azure/dev-box/how-to-generate-visual-studio-caches)
293
+
-[GitHub Copilot Completions in Visual Studio](../ide/visual-studio-github-copilot-extension.md)
294
+
-[GitHub Copilot Chat in Visual Studio](../ide//visual-studio-github-copilot-chat.md)
0 commit comments