# VS Code workspaces VS Code workspaces bring the power of Microsoft's [VS Code ↗](https://github.com/microsoft/vscode) IDE directly into the Palantir platform. VS Code workspaces are development environments deployed on Palantir infrastructure that leverage [Code Workspaces](../../code-workspaces/overview/index.md) to provide an integrated development environment (IDE) for writing production-ready code. VS Code workspaces are available by default in all Organizations where Code Workspaces is enabled. Whether you are authoring functions, building Python transforms, developing OSDK React applications, or working on compute modules ([see a full list of supported workflows here](#supported-workflows)), VS Code workspaces provide a familiar, powerful environment with automatic environment setup and seamless integration with Foundry resources. ## Why use VS Code workspaces? [Learn more about the benefits of VS Code workspaces.](../benefits/index.md) ## Get started with VS Code workspaces ### Access a workspace 1. Open an existing or create a new [supported repository](#supported-workflows) in VS Code. 2. From Code Repositories, you can select **Open in VS Code** in the upper right corner (shown for supported repositories). 3. At the time of creating a new repository, selecting VS Code will automatically bring you into a VS Code workspace. 4. Your environment is ready, and you can start coding. ![The "Open in VS Code" button in a code repository.](../../../assets/d83e5e20f3b1541a1cfd0334c95648fd384e8b323f48d6d2b580865e4f461e0f.webp) ![Create a new VS Code workspace.](../../../assets/a1103324ee3f30a6dd5852196e31a51cde30a858a9818bfed32e1e1ecb16563a.webp) ### Make VS Code your default editor You can make VS Code your default code editor for all supported repository types by navigating to the **Settings** tab within any repository and selecting **Open repositories in a VS Code workspace by default**. ![Make "VS Code Default" Setting for supported repository types.](../../../assets/d31253393bb8ee3262e64a02a1ea48dde71e7fab2b54e5e1d1cad29817e88443.webp) Some repositories will open in VS Code regardless of the default setting, since these repository types have been optimized for VS Code workspaces. ## Supported workflows VS Code workspaces support the workflows described in the sections below. ### Python transforms The Palantir extension automatically sets up your Python environment at startup and provides the following: * [Preview integration](../../palantir-extension-for-visual-studio-code/transforms-preview/index.md) with sample-less and code-defined filtering options * [Debugging support](../../palantir-extension-for-visual-studio-code/debug-transforms/index.md) with variable inspection * [Build triggers](../../palantir-extension-for-visual-studio-code/transforms-build/index.md) from inside your editor * Resource paths displayed with resource identifiers for easy navigation * Automatic code environment setup * Code snippets for common patterns ![The "Preview" section in VS Code Workspaces.](../../../assets/2f9838fe356df11f8a18e1049f03666704b3c6c56fad8bbd5afe8f9da7c254a7.webp) [Learn more about Python transforms.](../../transforms-python/getting-started/index.md) ### Functions VS Code workspaces support developing functions with the Palantir extension for Visual Studio Code. For supported functions repositories, you can: * Import Foundry resources and generate SDKs. * Preview functions and inspect results before committing changes. * Create and switch between **Code** and **Global** branches. * Commit and propose changes, tag function versions, and upgrade the repository. * Run unit tests and other development commands in the integrated terminal. [Learn how to navigate VS Code for functions.](../../functions/navigating-vscode/index.md) ### OSDK React applications VS Code is integrated with [Developer Console](../../developer-console/overview/index.md), allowing you to rapidly build React applications. You can create a VS Code workspace in the **Code repository** section of your Developer Console. ![The option to use Code Repositories or VS Code Workspaces as a code environment in Developer Console.](../../../assets/119845ddbcc7e4c969718b6cf6b9a6c4ae94c21621d35807f4c0d3ad9bd16b07.webp) Key features include: * Full Ontology integration with OSDK to interact with your unique Ontology resources * Git repository configuration with OAuth pre-configured * CI setup to deploy your website on every release * Automatic node/npm environment setup * Development server with live reload for instant feedback ![An example of a VS Code environment showing React OSDK application code in Developer Console.](../../../assets/c748e51dfa9bc2f5d6743b62a99617d1c549b6641f304410e3ccc6d2a0db4b10.webp) [Learn more about OSDK React applications.](../../ontology-sdk-react-applications/overview/index.md) ### Other supported workflows * **[Compute modules](../../compute-modules/get-started/index.md):** Build Python compute modules with run and debug capabilities. * **[Python libraries](../../transforms-python/share-python-libraries/index.md):** Develop and debug reusable Python libraries. *** ## Reference: VS Code workspaces vs. Code Repositories VS Code and Code Repositories serve different primary purposes: * **Code Repositories:** A Palantir-built IDE focused on all code-management needs, including editing, version control, change management, and continuous integration. This is the intended platform tool for pull request reviews and repository management. * **VS Code:** A VS Code environment deployed on Palantir infrastructure and accessible from the Palantir platform. Provides the familiar VS Code editing experience with automatic environment setup and integration with Foundry resources through the [Palantir extension for Visual Studio Code](../../palantir-extension-for-visual-studio-code/overview/index.md). * **Palantir extension for Visual Studio Code (local):** An extension you install in your local VS Code application to integrate directly with Foundry. Provides preview, debug, and build capabilities for Python transforms while working on your local machine. ### Feature comparison | Feature | Code Repositories | VS Code workspaces | Palantir extension for Visual Studio Code | | --------------------------: | -------------------------------------------------------------------- | ------------------------------------ | ----------------------------------------- | | **Transforms** | | | | | Python transform preview | Yes | Yes | Yes | | Full data preview | Preview data sample, with the ability to pre-filter the input sample | Yes | Yes | | Debugger support | Yes | Yes | Yes | | Java transforms | Yes | No | No | | Unit tests | Yes | Yes | Yes | | **OSDK React applications** | | | | | TypeScript Language Server | No | Yes | Yes | | Live reload code changes | No | Yes | Yes | | **Python compute modules** | | | | | Run and debug Python files | No | Yes | Yes | | **Python libraries** | | | | | Run and debug Python files | No | Yes | Yes | | **Workflows** | | | | | SQL integration | Yes | No | No | | TypeScript function preview | Yes | Yes | No | | **IDE** | | | | | Shell terminal | No | Yes (Remote host) | Yes | | Keybinding customization | No | Yes | Yes | | Public extension support | N/A | No | Yes, if allowed by your organization | | AI Assistance | AIP Autocomplete | Yes, Continue extension | No | ## Browse code while a workspace starts By default, when you open a [stopped VS Code workspace](../../code-workspaces/getting-started/index.md#code-workspace-lifecycle), [the code viewer](../../code-workspaces/code-viewer/index.md#continue-in-an-editor) opens while its workspace session starts in the background. You can browse committed code while the **VS Code** tab icon shows the workspace status. The code viewer remains open until you select the **VS Code** tab. ## Choose your development environment You have two options for using VS Code with Foundry. For a detailed comparison to help you decide which is right for you, review our documentation on [choosing between local development and VS Code workspaces](../local-vs-workspace-guide/index.md). The [Palantir extension for Visual Studio Code](../../palantir-extension-for-visual-studio-code/overview/index.md) provides native integrations with the Palantir platform, including many features you see in [Code Repositories](../../code-repositories/overview/index.md). [Learn more about the features of the Palantir extension.](../../palantir-extension-for-visual-studio-code/extension-features/index.md) ### Pricing For VS Code workspace pricing information see [Code Workspaces compute usage](../../code-workspaces/compute-usage/index.md). *** VS Code workspaces and the Palantir extension for Visual Studio Code are not affiliated with or endorsed by Microsoft.