Updates code examples to C#
This commit is contained in:
@@ -52,7 +52,7 @@ To use {% data variables.product.prodname_copilot %}, you must first install the
|
|||||||
{% data reusables.copilot.create-c-file %}
|
{% data reusables.copilot.create-c-file %}
|
||||||
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.
|
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) {
|
int CalculateDaysBetweenDates(
|
||||||
```
|
```
|
||||||

|

|
||||||
{% data reusables.copilot.accept-suggestion %}
|
{% data reusables.copilot.accept-suggestion %}
|
||||||
@@ -63,7 +63,7 @@ To use {% data variables.product.prodname_copilot %}, you must first install the
|
|||||||
1. In the C# file, type the following function signature. {% 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) {
|
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. 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.
|
1. Optionally, you can hover over the suggestion to see the {% data variables.product.prodname_copilot %} command palette for choosing suggestions.
|
||||||
|
|||||||
Reference in New Issue
Block a user