1
0
mirror of synced 2025-12-21 10:57:10 -05:00

Update getting-started-with-github-copilot-in-visual-studio.md

Reaming method header to method signature to better match the language guide. [C# Methods](https://docs.microsoft.com/dotnet/csharp/methods)
This commit is contained in:
Kevin B
2022-06-21 14:19:16 -07:00
committed by GitHub
parent f38f1d129d
commit 22f1563cf8

View File

@@ -50,7 +50,7 @@ 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.supported-languages %} The following samples are in C#, but other languages will work similarly.
{% data reusables.copilot.create-c-file %} {% 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} ```csharp{:copy}
function calculateDaysBetweenDates(begin, end) { function calculateDaysBetweenDates(begin, end) {
``` ```
@@ -60,7 +60,7 @@ To use {% data variables.product.prodname_copilot %}, you must first install the
## Seeing alternative suggestions ## Seeing alternative suggestions
{% data reusables.copilot.alternative-suggestions %} {% data reusables.copilot.alternative-suggestions %}
{% data reusables.copilot.create-c-file %} {% 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} ```csharp{:copy}
function calculateDaysBetweenDates(begin, end) { function calculateDaysBetweenDates(begin, end) {