1
0
mirror of synced 2026-01-26 03:06:48 -05:00
Files
docs/translations/es-ES/content/copilot/configuring-github-copilot/configuring-github-copilot-in-visual-studio-code.md
docubot 92468788c4 New translation batch for es (#29413)
* Add crowdin translations

* Run script/i18n/homogenize-frontmatter.js

* Run script/i18n/fix-translation-errors.js

* Run script/i18n/lint-translation-files.js --check rendering

* run script/i18n/reset-files-with-broken-liquid-tags.js --language=es

* run script/i18n/reset-known-broken-translation-files.js

Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
2022-07-28 02:39:36 +00:00

9.7 KiB

title, intro, product, versions, shortTitle, topics
title intro product versions shortTitle topics
Configuring GitHub Copilot in Visual Studio Code You can enable, configure, and disable {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}. {% data reusables.gated-features.copilot %}
feature
copilot
Visual Studio Code
Copilot

Acerca de los {% data variables.product.prodname_copilot %} en {% data variables.product.prodname_vscode %}

If you use {% data variables.product.prodname_vscode %}, {% data variables.product.prodname_copilot %} can autocomplete code as you type. After installation, you can enable or disable {% data variables.product.prodname_copilot %}, and you can configure advanced settings within {% data variables.product.prodname_vscode %} or on {% data variables.product.prodname_dotcom_the_website %}.

Prerrequisitos

To configure {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}, you must install the {% data variables.product.prodname_copilot %} plugin. For more information, see "Getting started with {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}."

Keyboard shortcuts for {% data variables.product.prodname_copilot %}

You can use the default keyboard shortcuts in {% data variables.product.prodname_vscode %} when using {% data variables.product.prodname_copilot %}. Alternatively, you can rebind the shortcuts in the Keyboard Shortcuts editor using your preferred keyboard shortcuts for each specific command. You can search for each keyboard shortcut by command name in the Keyboard Shortcuts editor.

{% mac %}

Acción Shortcut Command name
Accept an inline suggestion Tab editor.action.inlineSuggest.commit
Dismiss an inline suggestion Esc editor.action.inlineSuggest.hide
Show next inline suggestion Option (⌥)+]
editor.action.inlineSuggest.showNext
Show previous inline suggestion Option (⌥)+[
editor.action.inlineSuggest.showPrevious
Trigger inline suggestion Option (⌥)+</kbd>
editor.action.inlineSuggest.trigger
Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) Ctrl+Return github.copilot.generate
Toggle {% data variables.product.prodname_copilot %} on/off No default shortcut github.copilot.toggleCopilot

{% endmac %}

{% windows %}

Acción Atajo Nombre del comando
Aceptar una sugerencia en una línea Tab editor.action.inlineSuggest.commit
Descartar una sugerencia dentro de una línea Esc editor.action.inlineSuggest.hide
Mostrar la siguiente sugerencia dentro de una línea Alt+] editor.action.inlineSuggest.showNext
Mostrar la sugerencia anterior en la línea Alt+[ editor.action.inlineSuggest.showPrevious
Activar las sugerencias dentro de las líneas Alt+</kbd> editor.action.inlineSuggest.trigger
Abre el {% data variables.product.prodname_copilot %} (sugerencias adicionales en un panel por separado) Ctrl+Enter github.copilot.generate
Activa y desactiva el {% data variables.product.prodname_copilot %} Sin atajo predeterminado github.copilot.toggleCopilot

{% endwindows %}

{% linux %}

Acción Atajo Nombre del comando
Aceptar una sugerencia en una línea Tab editor.action.inlineSuggest.commit
Descartar una sugerencia dentro de una línea Esc editor.action.inlineSuggest.hide
Mostrar la siguiente sugerencia dentro de una línea Alt+] editor.action.inlineSuggest.showNext
Mostrar la sugerencia anterior en la línea Alt+[ editor.action.inlineSuggest.showPrevious
Activar las sugerencias dentro de las líneas Alt+</kbd> editor.action.inlineSuggest.trigger
Abre el {% data variables.product.prodname_copilot %} (sugerencias adicionales en un panel por separado) Ctrl+Enter github.copilot.generate
Activa y desactiva el {% data variables.product.prodname_copilot %} Sin atajo predeterminado github.copilot.toggleCopilot

{% endlinux %}

Rebinding keyboard shortcuts

If you don't want to use the default keyboard shortcuts in {% data variables.product.prodname_vscode %} when using {% data variables.product.prodname_copilot %}, you can rebind the shortcuts in the Keyboard Shortcuts editor using your preferred keyboard shortcuts for each specific command.

  1. Click the File menu, click Preferences, then click Keyboard Shortcuts. Screenshot of Visual Studio Code keyboard shortcuts
  2. In the "Keyboard Shortcuts" editor, search for the command name of the keyboard shortcut you want to change. Screenshot of Keyboard shortcut search bar
  3. Next to the command you want to change, click the pencil icon. Screenshot of Keyboard shortcut editor
  4. Type the keystrokes you want to use for the command, then press Enter/Return. Screenshot of Edit keyboard shortcut textbox

{% data reusables.copilot.enabling-or-disabling-in-vsc %}

Enabling or disabling inline suggestions

You can choose to enable or disable inline suggestions for {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}.

  1. In the File menu, navigate to Preferences and click Settings. Screenshot of {% data variables.product.prodname_vscode %} settings
  2. In the left-side panel of the settings tab, click Extensions and then select Copilot.
  3. Under "Inline Suggest:Enable", select or deselect the checkbox to enable or disable inline suggestions.

Enabling or disabling {% data variables.product.prodname_copilot %} for specific languages

You can specify which languages you want to enable or disable {% data variables.product.prodname_copilot %} for.

  1. From the {% data variables.product.prodname_vscode %}, click the Extensions tab, then navigate to the Copilot section. For more information, see "Enabling and disabling inline suggestions."

  2. Under "Enable or disable Copilot for specified languages", click Edit in settings.json.

  3. 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.

    {
        "editor.inlineSuggest.enabled": true,
        "github.copilot.enable": {
            "*": true,
            "yaml": false,
            "plaintext": false,
            "markdown": true,
            "javascript": true,
            "python": true
        }
    }
    

{% data reusables.copilot.dotcom-settings %}