Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding readme tab for eclipse #35788

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,47 @@

{% 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
Loading