Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Con la integración de Compute Engine de Cloud Code, puedes ver las VMs de Compute Engine que ejecutan tus aplicaciones, establecer conexiones a tus VMs con SSH, ver los registros de las aplicaciones y subir archivos a una VM.
En este documento, se muestra cómo acceder a Compute Engine con Cloud Code en tu IDE y administrar tus instancias de VM.
Ver VM
Para ver las VMs en tu proyecto de Google Cloud y los detalles de las instancias de VM en la consola de Google Cloud , sigue estos pasos:
Haz clic en la pestaña Compute Engine o selecciona Ver > Ventanas de herramientas > Compute Engine.
Si no seleccionaste un proyecto, haz clic en Seleccionar un proyecto de Google Cloud, selecciona un proyecto y, luego, haz clic en Aceptar. Google Cloud
Para ver tus instancias de VM, expande el fragmento Todas las instancias de VM.
Para ver los detalles de la instancia de VM en la consola de Google Cloud , haz clic con el botón derecho en la instancia de VM y selecciona Abrir en la consola de Cloud.
Cómo agregar y ver VMs favoritas
IntelliJ admite instancias de VM favoritas por proyecto Google Cloud , que se conservan entre los reinicios de la VM. Para agregar VMs a tu lista de favoritos y verla, sigue estos pasos:
En la pestaña Compute Engine, en el fragmento Todas las instancias de VM, haz clic con el botón derecho en una instancia de VM y selecciona Agregar a favoritos.
Para ver tu lista de favoritos, expande el fragmento Instancias de VM favoritas.
Para quitar una VM de tu lista de favoritos, haz clic con el botón derecho en la VM y selecciona Quitar de Favoritos.
Conéctate a una VM
Para conectarte a la instancia de VM en tu IDE con Cloud Code a través de la terminal integrada del IDE y SSH, sigue estos pasos:
Para conectarte a una instancia de VM, haz clic con el botón derecho en ella y selecciona Abrir conexión SSH.
Aparecerá una terminal que mostrará información sobre la instancia remota.
Si falla la conexión a la instancia de VM, aparecerá un diálogo con un mensaje de error.
Para ver información en la terminal sobre el problema y las posibles resoluciones, haz clic en Soluciona problemas en la terminal. O bien, para ver la documentación sobre cómo solucionar problemas de SSH, haz clic en Ver la guía para solucionar problemas.
Cómo ver los registros de aplicaciones en una VM
Para ver los registros de la aplicación de una instancia de VM en tu IDE, haz clic con el botón derecho en la instancia de VM y selecciona Ver el Explorador de registros. Esto te llevará al Explorador de registros en la consola de Google Cloud .
Sube un archivo a una VM
Para copiar archivos de la aplicación desde tu IDE local a tu instancia de VM remota, sigue estos pasos:
Para subir un archivo a una VM, selecciona una instancia de VM y, en la parte superior del panel de Compute Engine, haz clic en cloud_uploadSubir o haz clic con el botón derecho en la instancia de VM y selecciona Subir un archivo o directorio.
Navega al archivo que quieres subir y haz clic en Abrir. Se abre una terminal con la lista de archivos y el progreso de la carga.
Si falla la carga, aparecerá el diálogo Solución de problemas de conectividad SSH.
Elige una opción para hacer clic:
Ver la guía de transferencia de archivos: Abre Transfiere archivos a VMs de Linux para obtener más información sobre la transferencia de archivos a instancias de VM de Compute Engine.
Soluciona problemas en la terminal: Muestra información en la terminal sobre el problema y las posibles soluciones.
Ver la guía de solución de problemas: Abre Soluciona problemas de errores de SSH para obtener más información sobre los errores comunes que puedes encontrar cuando te conectas a una VM con SSH, formas de resolver errores y métodos para diagnosticar conexiones SSH con errores.
Obtenga asistencia
Para enviar comentarios o informar un problema en tu IDE de IntelliJ, ve a Tools > Cloud Code > Help / About > Submit feedback or report an issue para informar un problema en GitHub.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eCloud Code enables you to manage Compute Engine VMs directly within your IDE, including viewing, connecting, and managing instances.\u003c/p\u003e\n"],["\u003cp\u003eYou can easily view all your VM instances and their details in the Google Cloud console via Cloud Code's Compute Engine tab.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code allows you to designate favorite VMs for quick access, and this selection is retained even after VM restarts.\u003c/p\u003e\n"],["\u003cp\u003eEstablishing SSH connections to VMs can be done directly from the IDE, with built-in tools for troubleshooting connection failures.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code facilitates the transfer of files to Linux VMs, and it provides support for viewing application logs from the VM.\u003c/p\u003e\n"]]],[],null,["# Manage VMs in Cloud Code for IntelliJ\n\nWith Cloud Code's Compute Engine integration, you can\nview the Compute Engine VMs running your applications, establish\nconnections to your VMs using SSH, view application logs, and upload files to a\nVM.\n\nThis document shows you how to access Compute Engine with\nCloud Code in your IDE and manage your VM instances.\n\nView VMs\n--------\n\nTo view VMs in your Google Cloud project and the VM instance details in\nthe Google Cloud console, follow these steps:\n\n1. Click the **Compute Engine** tab or select\n **View \\\u003e Tool Windows \\\u003e Compute Engine**.\n\n2. If you haven't selected a Google Cloud project, click\n **Select a Google Cloud Project** , select a project, and then click **OK**.\n\n3. To view your VM instances, expand the **All VM Instances** snippet.\n\n4. To view the VM instance details in the Google Cloud console, right-click the VM\n instance and select **Open in Cloud Console**.\n\n### Add and view favorite VMs\n\nIntelliJ supports *favorite VM instances* per Google Cloud project, which\nare retained between VM restarts. To add VMs to your favorites list and to view\nthe list, follow these steps:\n\n1. In the **Compute Engine** tab, under the **All VM Instances** snippet,\n right-click a VM instance and select **Add to Favorites**.\n\n2. To view your favorites list, expand the **Favorite VM Instances** snippet.\n\n3. To remove a VM from your favorites list, right-click the VM and select\n **Remove from Favorites**.\n\nConnect to a VM\n---------------\n\nTo connect to the VM instance in your IDE with Cloud Code using the\nbuilt-in IDE terminal and SSH, follow these steps:\n\n1. To connect to a VM instance, right-click the VM instance and select **Open\n SSH connection**.\n\n A terminal appears, displaying information about the remote instance.\n2. If the connection to the VM instance fails, an error message dialog appears.\n To view information in the terminal about the issue and potential resolutions,\n click **Troubleshoot in terminal** . Or, to view\n [Troubleshooting SSH errors](/compute/docs/troubleshooting/troubleshooting-ssh)\n documentation, click **View troubleshooting guide**.\n\nView application logs on a VM\n-----------------------------\n\nTo view the application logs of a VM instance in your IDE, right-click the VM\ninstance and select **View Logs Explorer**. This takes you to the\nLogs Explorer in the Google Cloud console.\n\nUpload a file to a VM\n---------------------\n\nTo copy application files from your local IDE to your remote VM instance, follow\nthese steps:\n| **Note:** Cloud Code only supports [transferring files to Linux\n| VMs](/compute/docs/instances/transfer-files). For additional options for Windows machines, see [Transfer files to Windows VMs](/compute/docs/instances/transfer-files-windows).\n\n1. To upload a file to a VM, select a VM instance and at the top of the\n **Compute Engine** pane, click\n cloud_upload\n **Upload** , or right-click the VM instance and select **Upload a file/directory**.\n\n2. Navigate to the file that you want to upload and click **Open**. A terminal\n opens with the list of files and progress of the upload.\n\n3. If the upload fails, the **SSH Connectivity Troubleshooting** dialog appears.\n Choose an option to click:\n\n - **View file transfer guide** : Opens [Transferring files to Linux VMs](/compute/docs/instances/transfer-files) for more information on transferring files to Compute Engine VM instances.\n - **Troubleshoot in terminal**: Displays information in the terminal about the issue and potential resolutions.\n - **View troubleshooting guide** : Opens [Troubleshooting SSH errors](/compute/docs/troubleshooting/troubleshooting-ssh) for more information about common errors that you might run into when connecting to a VM using SSH, ways to resolve errors, and methods for diagnosing failed SSH connections.\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]