Bugfix: Incorrect instructions for Copilot in Xcode (#55581)
Co-authored-by: Jules Porter <jules-p@users.noreply.github.com> Co-authored-by: Felicity Chapman <felicitymay@github.com>
This commit is contained in:
@@ -330,19 +330,7 @@ You can specify which languages you want to enable or disable {% data variables.
|
||||
1. Under "Enable or disable {% data variables.product.prodname_copilot_short %} for specified languages," click **Edit in settings.json**.
|
||||
1. In the _settings.json_ file, add or remove the languages you want to enable or disable {% data variables.product.prodname_copilot %} for. For example, to enable Python in {% data variables.product.prodname_copilot %}, add `"python": true` to the list, ensuring there is a trailing comma after all but the last list item.
|
||||
|
||||
```json
|
||||
{
|
||||
"editor.inlineSuggest.enabled": true,
|
||||
"github.copilot.enable": {
|
||||
"*": true,
|
||||
"yaml": false,
|
||||
"plaintext": false,
|
||||
"markdown": true,
|
||||
"javascript": true,
|
||||
"python": true
|
||||
}
|
||||
}
|
||||
```
|
||||
{% data reusables.copilot.vs-code-settings-json-ex %}
|
||||
|
||||
## Revoking {% data variables.product.prodname_copilot %} authorization
|
||||
|
||||
@@ -431,14 +419,14 @@ If you don't want to use the default keyboard shortcuts for {% data variables.pr
|
||||
|
||||
If you want to use something besides <kbd>Tab</kbd> to accept the first line of a suggestion, you need to disable the "Accept suggestions with Tab" option in the advanced settings in the {% data variables.product.prodname_copilot %} for Xcode application. Additionally, we currently only support the <kbd>Option</kbd> key for the "View full suggestion" action.
|
||||
|
||||
1. In the Xcode menu bar, click **Settings**.
|
||||
1. In the Xcode menu, click **Xcode** then **Settings**.
|
||||
1. Click **Key Bindings** and search for "{% data variables.product.prodname_copilot_short %}" to find the commands you want to rebind.
|
||||
|
||||
## Enabling or disabling {% data variables.product.prodname_copilot %}
|
||||
|
||||
You can enable or disable the {% data variables.product.prodname_copilot %} extension from within the application.
|
||||
|
||||
1. Open the {% data variables.product.prodname_copilot %} extension application.
|
||||
1. Open the {% data variables.product.prodname_copilot %} for Xcode application.
|
||||
1. At the top of the application window, click **Advanced**.
|
||||
1. In the "Suggestion Settings" section, use the "Request suggestions while typing" toggle to enable or disable the extension.
|
||||
|
||||
@@ -446,7 +434,7 @@ You can enable or disable the {% data variables.product.prodname_copilot %} exte
|
||||
|
||||
You can configure the {% data variables.product.prodname_copilot %} extension to automatically check for updates.
|
||||
|
||||
1. Open the {% data variables.product.prodname_copilot %} extension application.
|
||||
1. Open the {% data variables.product.prodname_copilot %} for Xcode application.
|
||||
1. Select **Automatically check for updates**.
|
||||
|
||||
After updating the extension, Xcode must be restarted for the changes to take effect.
|
||||
|
||||
@@ -206,8 +206,8 @@ Two permissions are required to be able to use the extension: "Accessibility" an
|
||||
|
||||
The "Xcode Source Editor Extension" permission needs to be enabled manually.
|
||||
|
||||
1. Open the {% data variables.product.prodname_copilot %} extension application.
|
||||
1. Click **Extension Permission** and click **Xcode Source Editor**.
|
||||
1. Open the {% data variables.product.prodname_copilot %} for Xcode application.
|
||||
1. Click **Extension Permission**.
|
||||
1. Enable {% data variables.product.prodname_copilot %} and click **Done**.
|
||||
|
||||
After granting the required permissions, restart Xcode. You will see a new item in the "Editor" menu called "{% data variables.product.prodname_copilot %}".
|
||||
@@ -218,7 +218,7 @@ Before you can use the {% data variables.product.prodname_copilot %} extension f
|
||||
|
||||
>[!NOTE] {% data reusables.copilot.sign-in-ghecom %} See [AUTOTITLE](/copilot/managing-copilot/configure-personal-settings/using-github-copilot-with-an-account-on-ghecom?tool=xcode#authenticating-from-xcode).
|
||||
|
||||
1. Open the {% data variables.product.prodname_copilot %} extension application.
|
||||
1. Open the {% data variables.product.prodname_copilot %} for Xcode application.
|
||||
1. Click **Login to {% data variables.product.github %}** and follow the prompts to authorize the extension.
|
||||
|
||||
{% endxcode %}
|
||||
|
||||
@@ -163,7 +163,7 @@ To check if GitHub Copilot is operational, run the following command in Vim/Neov
|
||||
|
||||
The log files for the {% data variables.product.prodname_copilot %} extension for Xcode are stored in `~/Library/Logs/GitHubCopilot/`. The most recent file is named `github-copilot-for-xcode.log`.
|
||||
|
||||
1. Open the {% data variables.product.prodname_copilot %} extension application.
|
||||
1. Open the {% data variables.product.prodname_copilot %} for Xcode application.
|
||||
1. At the top of the application window, click **Advanced**.
|
||||
1. In the "Logging" section, click **Open Copilot Log Folder**.
|
||||
|
||||
@@ -171,7 +171,7 @@ The log files for the {% data variables.product.prodname_copilot %} extension fo
|
||||
|
||||
You can enable verbose logging to help troubleshoot issues with the {% data variables.product.prodname_copilot %} extension for Xcode.
|
||||
|
||||
1. Open the {% data variables.product.prodname_copilot %} extension application.
|
||||
1. Open the {% data variables.product.prodname_copilot %} for Xcode application.
|
||||
1. At the top of the application window, click **Advanced**.
|
||||
1. In the "Logging" section, next to "Verbose Logging", toggle the switch to the right.
|
||||
|
||||
|
||||
@@ -245,7 +245,7 @@ To use multi-model {% data variables.product.prodname_copilot_chat_short %}, you
|
||||
|
||||
{% data reusables.copilot.chat-model-limitations-ide %}
|
||||
|
||||
1. To open the chat view, click **{% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %}** in the menu bar, then click **Open Chat**.
|
||||
1. To open the chat view, click **Editor** in the menu bar, then click **{% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %}** then **Open Chat**. {% data variables.product.prodname_copilot_chat_short %} opens in a new window.
|
||||
1. In the bottom right of the chat view, select the **CURRENT-MODEL** {% octicon "triangle-down" aria-hidden="true" %} dropdown menu, then click the AI model of your choice.
|
||||
|
||||
{% endxcode %}
|
||||
|
||||
@@ -446,7 +446,7 @@ To use {% data variables.product.prodname_copilot %} for Xcode, you must install
|
||||
|
||||
You can ask {% data variables.product.prodname_copilot_chat_short %} to give you code suggestions, explain code, generate unit tests, and suggest code fixes.
|
||||
|
||||
1. To open the chat view, click **{% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %}** in the menu bar, then click **Open Chat**.
|
||||
1. To open the chat view, click **Editor** in the menu bar, then click **{% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %}** then **Open Chat**. {% data variables.product.prodname_copilot_chat_short %} opens in a new window.
|
||||
|
||||
1. Enter a prompt in the prompt box. For example prompts, see [AUTOTITLE](/copilot/using-github-copilot/guides-on-using-github-copilot/getting-started-with-prompts-for-copilot-chat).
|
||||
|
||||
|
||||
13
data/reusables/copilot/vs-code-settings-json-ex.md
Normal file
13
data/reusables/copilot/vs-code-settings-json-ex.md
Normal file
@@ -0,0 +1,13 @@
|
||||
```json
|
||||
{
|
||||
"editor.inlineSuggest.enabled": true,
|
||||
"github.copilot.enable": {
|
||||
"*": true,
|
||||
"yaml": false,
|
||||
"plaintext": false,
|
||||
"markdown": true,
|
||||
"javascript": true,
|
||||
"python": true
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user