Skip to content

Commit

Permalink
Merge pull request github#18758 from Keboo/patch-3
Browse files Browse the repository at this point in the history
Update getting-started-with-github-copilot-in-visual-studio.md
  • Loading branch information
jules-p authored Jul 12, 2022
2 parents 7e604bf + 4f9d913 commit 6388a7a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ To use {% data variables.product.prodname_copilot %}, you must first install the
{% data reusables.copilot.supported-languages %} The following samples are in C#, but other languages will work similarly.

{% data reusables.copilot.create-c-file %}
1. In the C# file, type the following function header. {% data variables.product.prodname_copilot %} will automatically suggest an entire function body in grayed text, as shown below. The exact suggestion may vary.
1. In the C# file, type the following function signature. {% data variables.product.prodname_copilot %} will automatically suggest an entire function body in grayed text, as shown below. The exact suggestion may vary.
```csharp{:copy}
function calculateDaysBetweenDates(begin, end) {
int CalculateDaysBetweenDates(
```
![Screenshot of a first suggestion Visual Studio Code](/assets/images/help/copilot/first-suggestion-visual-studio.png)
{% data reusables.copilot.accept-suggestion %}

## Seeing alternative suggestions
{% data reusables.copilot.alternative-suggestions %}
{% data reusables.copilot.create-c-file %}
1. In the C# file, type the following function header. {% data variables.product.prodname_copilot %} will show you a suggestion.
1. In the C# file, type the following function signature. {% data variables.product.prodname_copilot %} will show you a suggestion.

```csharp{:copy}
function calculateDaysBetweenDates(begin, end) {
int CalculateDaysBetweenDates(
```
1. If alternative suggestions are available, you can see these alternatives by pressing <kbd>Alt</kbd>+<kbd>]</kbd> (or <kbd>Alt</kbd>+<kbd>[</kbd>).
1. Optionally, you can hover over the suggestion to see the {% data variables.product.prodname_copilot %} command palette for choosing suggestions.
Expand Down

0 comments on commit 6388a7a

Please sign in to comment.