On the settings page, you can set your editor preference so that when you create a codespace, or open an existing codespace, it is opened in your choice of:
- Visual Studio Code (desktop application)
- Visual Studio Code (web client application)
- JetBrains Gateway - for opening codespaces in a JetBrains IDE
- JupyterLab - the web interface for Project Jupyter
Quando você cria um codespace a partir de um modelo, ele sempre é aberto no cliente Web Visual Studio Code. Você pode reabrir um codespace existente em qualquer editor compatível. Para obter mais informações, confira "Como abrir um codespace existente".
If you want to use Visual Studio Code as your default editor for GitHub Codespaces, you need to install Visual Studio Code and the GitHub Codespaces extension for Visual Studio Code. For more information, see the download page for Visual Studio Code and the GitHub Codespaces extension on the Visual Studio Code marketplace.
If you want to work on a codespace in a JetBrains IDE you must install the JetBrains Gateway. For more information, see "Usar o GitHub Codespaces no IDE do JetBrains."
Setting your default editor
-
No canto superior direito de qualquer página, clique na foto do seu perfil e em Configurações.
-
Na seção "Código, planejamento e automação" da barra lateral, clique em Codespaces.
-
Under "Editor preference", select the option you want.
-
Se você escolher Visual Studio Code ou JetBrains Gateway, verifique se você instalou o aplicativo selecionado em seu computador local.
-
If you choose Visual Studio Code, GitHub Codespaces will automatically open in the desktop application when you next create or open a codespace.
You may need to allow access to both your browser and Visual Studio Code for it to open successfully.
-
If you choose JetBrains Gateway, the Gateway application will automatically open when you next create or open a codespace.
-
If you choose JetBrains Gateway, the Gateway application will automatically open when you next create or open a codespace.
The first time you open a codespace this way you must give permission to open the application.
The Gateway application will open and the codespace will then be automatically selected. You can then choose a JetBrains IDE, if you have not previously done so, and click Connect to open the codespace in the JetBrains client. For more information, see "Usar o GitHub Codespaces no IDE do JetBrains."
To connect to a codespace from the Gateway application, you must have an SSH server running on the codespace. O codespace ao qual você se conecta precisa estar executando um servidor SSH. A imagem de contêiner padrão inclui um servidor SSH, que é iniciado automaticamente. Se os codespaces não forem criados com base na imagem padrão, você poderá instalar e iniciar um servidor SSH adicionando o seguinte ao objeto
features
no arquivodevcontainer.json
."features": { // ... "ghcr.io/devcontainers/features/sshd:1": { "version": "latest" }, // ... }
-
If you choose JupyterLab, the JupyterLab application must be installed in the codespaces you open. A imagem de contêiner padrão inclui o JupyterLab, portanto, os codespaces criados com base na imagem padrão sempre terão o JupyterLab instalado. Para saber mais sobre a imagem padrão, confira o "Introdução aos contêineres de desenvolvimento" e o repositório
devcontainers/images
. Se você não estiver usando a imagem padrão na configuração do contêiner de desenvolvimento, instale o JupyterLab adicionando o recursoghcr.io/devcontainers/features/python
ao arquivodevcontainer.json
. Você deve incluir a opção"installJupyterlab": true
. Para obter mais informações, confira o LEIAME dopython
recurso, no repositóriodevcontainers/features
.
-