Skip to content

Commit

Permalink
Adding readme tab for eclipse
Browse files Browse the repository at this point in the history
Added the usage for eclipse
  • Loading branch information
hangwan97 committed Dec 30, 2024
1 parent d25344a commit f65056e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,47 @@ If you want to accept the next line of the suggestion, you will need to set a cu

{% endazure_data_studio %}

{% eclipse %}

Check failure on line 427 in content/copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot.md

View workflow job for this annotation

GitHub Actions / lint-content

Markdown content must use valid Liquid

Liquid syntax error: tag "eclipse" not found.

## About {% data variables.product.prodname_copilot %} and {% data variables.product.prodname_eclipse %}

This guide demonstrates how to get coding suggestions from {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_eclipse %}. To see instructions for other popular coding environments, use the tool switcher at the top of the page.

The examples in this guide use Java, however other languages will work similarly. {% data reusables.copilot.supported-languages %}

## Prerequisites

* **Subscription to {% data variables.product.prodname_copilot_short %}**. To use {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}, you must have an active {% data variables.product.prodname_copilot %} subscription. {% data reusables.copilot.subscription-prerequisite %}

* **{% data variables.product.prodname_eclipse %}**. To use {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_eclipse %}, you must have {% data variables.product.prodname_eclipse %} installed. For more information, see the [{% data variables.product.prodname_eclipse %} download page](https://www.eclipse.org/downloads/).

* **{% data variables.product.prodname_copilot_short %} extension for {% data variables.product.prodname_eclipse %}**. To use {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_eclipse %}, you must install the [{% data variables.product.prodname_copilot %} extension](https://marketplace.eclipse.org/).

## Getting code suggestions

{% data variables.product.prodname_copilot %} offers coding suggestions as you type. For example, type this function header in a Java file:

```java copy
public int getDiff(int a, int b)
```

{% data variables.product.prodname_copilot %} will automatically suggest the rest of the function. {% data reusables.copilot.accept-suggestion %}

You can also describe something you want to do using natural language within a comment, and {% data variables.product.prodname_copilot_short %} will suggest the code to accomplish your goal. For example, type this comment in a JavaScript file:

```java copy
/*
* Return the diff between two different integers
*/
```

{% data variables.product.prodname_copilot %} will automatically suggest code. {% data reusables.copilot.accept-suggestion %}

> [!TIP]
> If you receive limited or no suggestions from {% data variables.product.prodname_copilot_short %}, you may have duplication detection enabled. For more information about duplication detection, see [AUTOTITLE](/copilot/configuring-github-copilot/configuring-your-personal-github-copilot-settings-on-githubcom#enabling-or-disabling-suggestions-matching-public-code).

{% endeclipse %}

{% xcode %}

{% data reusables.copilot.xcode-beta-note %}
Expand Down
9 changes: 9 additions & 0 deletions data/variables/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ prodname_vscode_command_palette: 'Visual Studio Code Command Palette'
prodname_vscode_marketplace: 'Visual Studio Code Marketplace'
prodname_vs_marketplace_shortname: 'VS Code Marketplace'

# Eclipse
prodname_eclipse_shortname: 'Eclipse'
prodname_eclipse: 'Eclipse IDE'
prodname_eclipse_command_palette_shortname: 'Eclipse Command Palette'
prodname_eclipse_command_palette: 'Eclipse IDE Command Palette'
prodname_eclipse_marketplace: 'Eclipse Marketplace'
prodname_eclipse_marketplace_shortname: 'Eclipse IDE Marketplace'


# GitHub Dependabot
prodname_dependabot: 'Dependabot'
prodname_dependabot_alerts: 'Dependabot alerts'
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
"cookie-parser": "^1.4.7",
"cuss": "2.2.0",
"dayjs": "^1.11.3",
"docs.github.com": "file:",
"dotenv": "^16.4.5",
"escape-string-regexp": "5.0.0",
"express": "4.21.2",
Expand Down

0 comments on commit f65056e

Please sign in to comment.