Skip to content

Commit 6bc4044

Browse files
Merge pull request #10592 from MicrosoftDocs/main638733387932069925sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents c04f336 + bf8ef71 commit 6bc4044

File tree

2 files changed

+38
-16
lines changed

2 files changed

+38
-16
lines changed

docs/get-started/tutorial-editor.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Introduction to editing in the code editor
33
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
55
ms.subservice: general-ide
66
ms.custom: vs-acquisition
77
ms.topic: tutorial
@@ -19,7 +19,7 @@ In this 10-minute introduction to the code editor in Visual Studio, we'll add co
1919
::: moniker range="vs-2019"
2020

2121
> [!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.
2323
2424
::: moniker-end
2525

@@ -44,11 +44,11 @@ Start by creating a new file and adding some code to it.
4444

4545
::: moniker range="vs-2019"
4646

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.
4848

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**.
5050

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**.
5252

5353
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!)
5454

@@ -58,11 +58,11 @@ Start by creating a new file and adding some code to it.
5858

5959
::: moniker range=">=vs-2022"
6060

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.
6262

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.
6464

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**.
6666

6767
A new file opens in the editor with the skeleton of a C# class.
6868

@@ -88,6 +88,22 @@ Let's use Copilot to generate code suggestions:
8888

8989
:::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":::
9090

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+
91107
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.
92108

93109
::: moniker-end
@@ -380,6 +396,8 @@ Nobody gets code right the first time, and one of the things you might have to c
380396

381397
## See also
382398

399+
- [GitHub Copilot Completions in Visual Studio](../ide/visual-studio-github-copilot-extension.md)
400+
- [GitHub Copilot Chat in Visual Studio](../ide//visual-studio-github-copilot-chat.md)
383401
- [Code snippets](../ide/code-snippets.md)
384402
- [Navigate code](../ide/navigating-code.md)
385403
- [Outlining](../ide/outlining.md)

docs/ide/quickstart-ide-orientation.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Tour the Visual Studio IDE"
33
description: Learn about some of the windows, menus, and other UI features of the Visual Studio integrated development environment (IDE).
44
ms.custom: vs-acquisition
55
titleSuffix: ''
6-
ms.date: 12/18/2023
6+
ms.date: 1/23/2025
77
ms.topic: conceptual
88
author: anandmeg
99
ms.author: meghaanand
@@ -21,16 +21,16 @@ To develop any type of app or learn a language, you work in the Visual Studio In
2121

2222
To get started, [download Visual Studio](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) and install it on your system.
2323

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.
2525

2626
:::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.":::
2727

2828
If you already have Visual Studio, you can add the **.NET desktop development** workload as follows:
2929
* Launch the Visual Studio Installer.
3030
* 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.
3434

3535
::: moniker range="vs-2019"
3636

@@ -162,12 +162,12 @@ To explore Visual Studio's features, let's create a new project.
162162

163163
:::image type="content" source="media/vs-2022/menu-bar.png" alt-text="Screenshot of the Menu bar in Visual Studio 2022.":::
164164

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.
166166

167167
:::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":::
168168

169169
> [!div class="button"]
170-
> [Get GitHub Copilot](visual-studio-github-copilot-extension.md#prerequisites)
170+
> [Get GitHub Copilot](visual-studio-github-copilot-install-and-states.md)
171171
172172
Learn more about [AI-assisted development in Visual Studio](ai-assisted-development-visual-studio.md).
173173

@@ -245,7 +245,7 @@ Visual Studio has many built-in debugging capabilities. Set a break point at any
245245
```csharp
246246
Console.WriteLine("\nWhat is your name?");
247247
var name = Console.ReadLine();
248-
```
248+
```
249249

250250
1. Select the **Start Debugging** button (green arrow) in the debug toolbar in Visual Studio to run your app.
251251

@@ -264,6 +264,8 @@ Visual Studio has many built-in debugging capabilities. Set a break point at any
264264
var name = Console.ReadLine();
265265
```
266266

267+
As you type, you can also press `Tab` to accept the code suggestions.
268+
267269
1. Select the **Start Debugging** button (green arrow) in the debug toolbar in Visual Studio to run your app.
268270

269271
:::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
288290
- [More features of Visual Studio](../ide/advanced-feature-overview.md)
289291
- [Change theme and font colors](../ide/how-to-change-fonts-and-colors-in-visual-studio.md)
290292
- [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

Comments
 (0)