[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-11。"],[],[],null,["# Base editor overview\n\nCloud Workstations comes with a default base editor\nthat lets you write, build, test, debug, and run your applications.\nThe base editor is based on the\n[Code-OSS](https://github.com/microsoft/vscode)\nopen source project, supports IDE extensions provided with the\n[Open VSX Registry](https://open-vsx.org/),\nand comes with the\n[Cloud Code](/code/docs/vscode/how-to)\nIDE extension pre-installed.\n\nTo get started using the Cloud Workstations base editor:\n\n1. Follow the quickstart instructions to [Create a workstation configuration](/workstations/docs/create-configuration). When prompted to select **Environment customization** , select **Code OSS (default)** as your code editor.\n2. Follow the quickstart instructions to\n [Create a workstation](/workstations/docs/create-workstation)\n using the configuration that you just created.\n\n3. In the Google Cloud console, go to the **Cloud Workstations** page to\n launch your workstation from the browser.\n\n\n [Go to Cloud Workstations](https://console.cloud.google.com/workstations/)\n\n \u003cbr /\u003e\n\nActivity bar\n------------\n\nThe Activity bar appears to the side and you can access the views available in\nthe Cloud Workstations base editor. These Activity bar views are as follows:\n\n-\n **Explorer**: view the folders and files in your current workspace\n\n-\n **Search**: search your files for a string or regular expression\n\n-\n **Source Control**: manage application files with the\n Cloud Workstations base editor's Git support\n\n-\n **Debug**: debug your application by setting breakpoints and inspecting\n variables\n\n-\n **Extensions**: search through a catalog of extensions that add additional\n features to your IDE\n\n-\n **Cloud Code**: create and deploy Google Cloud applications directly from\n the IDE\n\n-\n **Settings**: customize the Cloud Workstations base editor to suit your\n workflow\n\nView and edit files\n-------------------\n\nThe built-in code editor that lets you browse\nfile directories and view and edit files inside your workstation.\n\nTo work with the base editor, follow these steps:\n\n1. Use the **Activity Bar** to switch between views.\n\n2. Use the **Editor** to view and edit your files.\n\n3. Use the **Explorer view** to browse through the file directories, upload and\n download files, preview web applications on a Cloud Workstations\n virtual machine instance, and view usage statistics.\n\n Figure 1. Cloud Workstations base editor\n\n \u003cbr /\u003e\n\nUpload and download files and directories\n-----------------------------------------\n\nTo upload or download files and directories in the Code-OSS Explorer view, use\nany of the following methods:\n\n- Drag files over the Explorer view to add it to the workspace.\n\n- Navigate to the files and directories you would like to use, right-click,\n and then choose **Upload** or **Download**.\n\n Figure 2. Right-click in Explorer view to upload and download files\n\nLanguage support\n----------------\n\nThe Cloud Workstations base editor supports languages such as Go, Python, Java,\n.NET Core, and Node.js through extensions, providing language features such as:\n\n- Smart highlighting, code suggestions and context-based completions\n- Linting and providing descriptive errors\n- Code navigation (go to definitions, declarations, references, and implementations)\n- Intuitive debugging support\n\nCloud Code integration\n----------------------\n\n[Cloud Code](/code/docs/vscode/how-to)\nprovides IDE support for the full development cycle of\nKubernetes and Cloud Run applications, from creating and customizing a new\napplication from sample applications to running your finished application.\nCloud Code also supports you along the way with run-ready samples,\nconfiguration snippets, and a tailored debugging experience.\n\nCloud Code integrates with Gemini, an AI-powered\ncollaborator, to simplify development. [Use Gemini to\naccomplish tasks](/workstations/docs/write-code-gemini)\nmore effectively and efficiently.\n\nCloud Code supports the development of applications in Node.js,\nPython, Java, Go, and .NET Core.\n\nIn addition to the Cloud Code menu available in the status bar of\nCloud Workstations, you can also access Cloud Code commands\nthrough the command palette. To open the command palette, press\n\u003ckbd\u003eControl+Shift+P\u003c/kbd\u003e (or \u003ckbd\u003eCommand+Shift+P\u003c/kbd\u003e on macOS), or click\n**View** \\\u003e **Command Palette**.\n\nVersion control support\n-----------------------\n\nThe Cloud Workstations base editor comes with pre-configured version control.\nYou can initialize repositories, diff between file states, stage, unstage, and\ncommit changes. You can also use public, private, or even self-hosted\nrepositories, as long as the repositories are accessible from the workstation.\n\nWorkspace management\n--------------------\n\nWith Cloud Workstations, you can manage and configure your projects as\nworkspaces. Workspaces usually represent your root project folder and with the\nCloud Workstations base editor, you can create, open, and save workspaces as\nwell as customize them with project-specific settings.\n\nTo open a folder as a workspace, use the menu at the top of the activity bar and\nselect **File** \\\u003e **Open Folder** . Alternatively, you may use\nthe **Open File** or **Recent Workspace** options on the Welcome Page of the\nbase editor, or use the URL parameter `folder` to specify the path of the folder\nyou want to open---for example, `&folder=/home/user/foo`.\n\nDebug applications\n------------------\n\nCloud Workstations lets you debug your application, with\nsupport for Go, Node.js, Python, and Java applications.\nYou can create launch configurations, set breakpoints, and inspect variables,\nall within Cloud Workstations.\n\nAdditionally, you can debug Kubernetes applications on a local cluster such as\nminikube or Docker Desktop, a remote cluster on GKE,\nor any other Cloud provider.\n\nIntegrated terminal\n-------------------\n\nYou can interact with your underlying development environment through the\nintegrated terminal. Use any of the following methods to toggle the terminal\nview on and off:\n\n- Press \u003ckbd\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003eControl+\u003c/code\u003e\u003c/kbd\u003e.\n- Press \u003ckbd\u003eControl+Shift+P\u003c/kbd\u003e (or \u003ckbd\u003eCommand+Shift+P\u003c/kbd\u003e on macOS), or click **View** \\\u003e **Command Palette** , and then enter `View: Toggle Terminal`.\n- Select **Terminal** \\\u003e **New Terminal**.\n- Select **View** \\\u003e **Terminal**.\n- Click add**Add** in the terminal tab list.\n\nTo open multiple terminal windows, click **Split** , or\npress \u003ckbd\u003eControl+Shift+5\u003c/kbd\u003e.\nFigure 4. Cloud Workstations interface with terminal open\n\n### Manage and customize terminal tabs\n\nIf you open multiple terminals, a terminal tabs list appears on the side of the\nterminal view. This list contains names of open terminals.\n\n- When you select a terminal name in the list,\n **Split** and **Delete** icons\n appear. Click the respective icon to split or delete a terminal window.\n\n \u003cbr /\u003e\n\n- To see additional terminal options such as **Move Terminal into Editor Area** ,\n **Rename** , **Change Color** , **Change Icon**, and more, right-click on a\n terminal name.\n\n Figure 5. Customize your terminal\n\n### Scroll the display\n\nIn addition to using your mouse while browser focus is on a session tab, you can\nscroll by pressing \u003ckbd\u003eControl+Shift+PageUp\u003c/kbd\u003e and\n\u003ckbd\u003eControl+Shift+PageDn\u003c/kbd\u003e on Windows and Linux (or \u003ckbd\u003eFn+Shift+Up\u003c/kbd\u003e\nand \u003ckbd\u003eFn+Shift+Down\u003c/kbd\u003e on macOS).\n\nCustomize settings\n------------------\n\nTo customize the editor, user interface, and functional behavior,\nthe Cloud Workstations base editor provides the following scopes for\ndefining settings:\n\n- **Machine Settings** : Settings that apply globally when you connect\n to a Cloud Workstations virtual instance and that appear\n on your workstation in the\n `$HOME/.codeoss-cloudworkstations/data/Machine/settings.json` file.\n\n- **User Settings**: Settings that apply globally when you connect\n to a Cloud Workstations virtual instance and that persist\n in browser storage for each workstation instance.\n\n- **Workspace Settings** : Settings stored inside a workspace that only\n apply when opening that workspace. These settings appear with your\n workspace files in the `$WORKSPACE_ROOT/.vscode/settings.json` file.\n\nThe editor evaluates each settings scope respectively.\n\nKeyboard shortcuts\n------------------\n\nBecause the default base editor runs in the browser,\nsome keyboard shortcuts might be reserved by the browser and not captured by the\neditor.\n\nTo support all keyboard shortcuts, the default\nbase editor bundles a Progressive Web App (PWA) that\nallows the editor to capture these shortcuts.\n\nTo use the PWA:\n\n1. Open the Workstation in your browser.\n2. Click the installation icon that appears in your browser's address bar.\n\nThe PWA should then be installed and the Workstation reopens in the PWA.\nOn subsequent loads of your Workstation the browser presents an option to\nreopen the Workstation in the PWA in the address bar."]]