1
0
mirror of synced 2025-12-20 02:19:14 -05:00

Get indented references working

This commit is contained in:
Matt Pollard
2022-06-16 10:20:44 +02:00
parent 7243bc6bc3
commit 76aec94332
2 changed files with 9 additions and 9 deletions

View File

@@ -48,7 +48,8 @@ To use {% data variables.product.prodname_copilot %} in a JetBrains IDE, you mus
![Screenshot of the Java class body suggestion](/assets/images/help/copilot/java-class-body-suggestion-jetbrains.png)
{% data reusables.copilot.accept-suggestion %}
1. To prompt {% data variables.product.prodname_copilot %} to suggest a function body, type the following line below the bracket of the `main` function. The exact suggestion may vary.
{% data reusables.copilot.java-int-snippet %}
{% indented_data_reference reusables.copilot.java-int-snippet spaces=3 %}
![Screenshot of the Java function body suggestion](/assets/images/help/copilot/java-function-body-suggestion-jetbrains.png)
{% data reusables.copilot.accept-suggestion %}
@@ -60,7 +61,7 @@ To use {% data variables.product.prodname_copilot %} in a JetBrains IDE, you mus
{% data reusables.copilot.create-java-file %}
1. To prompt {% data variables.product.prodname_copilot %} to show you a suggestion, type the following line in the Java file.
{% data reusables.copilot.java-int-snippet %}
{% indented_data_reference reusables.copilot.java-int-snippet spaces=3 %}
{% data reusables.copilot.see-alternative-suggestions %}
| OS | See next suggestion | See previous suggestion |
@@ -75,9 +76,8 @@ To use {% data variables.product.prodname_copilot %} in a JetBrains IDE, you mus
{% data reusables.copilot.suggestions-new-tab %}
{% data reusables.copilot.create-java-file %}
1. In the Java file, type the following:
{% data reusables.copilot.java-int-snippet %}
{% data variables.product.prodname_copilot %} will show you a suggestion.
1. To prompt {% data variables.product.prodname_copilot %} to show you a suggestion, type the following line in the Java file.
{% indented_data_reference reusables.copilot.java-int-snippet spaces=3 %}
1. Open a new tab with multiple additional suggestions.
- On macOS, press <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>A</kbd>, then click **Open GitHub Copilot**, or press <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>\</kbd> to open the new tab immediately.
- On Windows or Linux, press <kbd>Ctrl</kbd>+<kbd>Enter</kbd>, then click **Open GitHub Copilot**.

View File

@@ -1,3 +1,3 @@
```java{:copy}
int calculateDaysBetweenDates(
```
```java{:copy}
int calculateDaysBetweenDates(
```