Edit

Share via


Get started with the Fabric Data Engineering VS Code extension

The Fabric Data Engineering VS Code extension brings Microsoft Fabric development into Visual Studio Code. With the extension you can author and run Fabric notebooks, create Spark job definitions, explore lakehouses, and manage Spark environments—all from your VS Code environment.

This article walks you through installing the extension, signing in, and selecting a workspace so you're ready to start developing.

What you can do with the extension

The extension supports the following Fabric items and tasks:

Prerequisites

Install the extension

To install the Fabric Data Engineering VS Code extension:

  1. Open the Extensions view in VS Code (Ctrl+Shift+X on Windows/Linux, Cmd+Shift+X on macOS), search for Fabric Data Engineering VS Code, and select Install. You can also install the extension from the Visual Studio Code Marketplace.

  2. After the installation completes, you might need to restart VS Code. The extension icon appears in the activity bar.

Access the command palette

You can access many of the extension's features through the VS Code command palette. To open the command palette:

  • On Windows/Linux: Press Ctrl+Shift+P
  • On macOS: Press Cmd+Shift+P

Once the command palette opens, enter "Fabric Data Engineering" (in full or in part) to filter the available commands.

Sign in to your account

  1. From the VS Code command palette, enter the Fabric Data Engineering: Sign In command.

    Screenshot of the VS Code command palette, showing the Fabric Data Engineering: Sign In command.

  2. A browser window opens. Select the account you want to use for your Fabric workspaces and complete the authentication.

  3. After you authenticate, the VS Code status bar at the bottom displays your account name.

    Note

    If your account has access to multiple tenants, one is selected automatically. You can see which tenant you're signed in to and switch tenants by selecting the account name in the status bar.

To sign out later, enter the command Fabric Data Engineering: Sign Out from the command palette.

Choose a workspace

After you sign in, connect to a Fabric workspace so you can start working with its items. The extension supports two authoring modes, and each has a different way to connect to a workspace.

Local mode

In local mode, you download notebooks and other items to a local working directory, edit them locally, and sync changes back to your Fabric workspace.

  1. Select the Fabric Data Engineering icon in the activity bar to open the extension's side bar.

  2. Select Select Workspace, or select the Switch Workspace icon (the arrows icon). A list of all workspaces you have access to appears; select the one you want.

    Screenshot of VS Code Explorer, showing where to find the Select Workspace option.

    To switch to a different workspace later, select the Switch Workspace icon at any time.

After you select a workspace, you can browse its items in the side bar. When you want to edit an item such as a notebook, you download it to a local folder on your machine. To choose where downloaded items are stored, run Fabric Data Engineering: Set Local Work Folder from the command palette.

VFS mode

In VFS (Virtual File System) mode, you open and edit workspace items directly as remote files, without downloading them. VFS mode also lets you add multiple Fabric workspaces to a single VS Code window and work across them side by side.

To enter VFS mode, select the Open a Remote Window button in VS Code, then select Open Fabric Data Engineering Workspaces. For the full setup steps, see Manage Fabric workspace with VS Code under VFS mode.