Develop with local VS Code or Cursor on an Anyscale workspace
This page describes using your local installation of VS Code or Cursor for interactive development on an Anyscale workspace.
When you use a local IDE connected to an Anyscale workspace, you're developing inside of the containerized environment deployed to your workspace Ray cluster. See Launch jobs and services from an Anyscale workspace and Container-driven development on Anyscale.
Launch a local IDE from the Anyscale console
You use the Anyscale console to automatically configure a connection between your preferred IDE and an Anyscale workspace.
When you use this pattern, Anyscale installs a VS Code extension and adds it to your remote.SSH.defaultExtensions
setting. For details, see Anyscale workspaces extension on Visual Studio Marketplace.
Complete the following steps to connect a local IDE to your Anyscale workspace:
- Log in to the Anyscale console.
- Click Workspaces.
- Click the name of the workspace.
- If the workspace isn't running, click Start.
- Click the chevron next to your current editor, such as
.
- Click Open in VS Code desktop or Open in Cursor. A new page loads asking you to confirm you want to open the application.
- Click Open Visual Studio Code or Open Cursor. Your IDE of choice opens.
- A dialog appears with the text Allow 'Workspaces' extension to open this URI?. Click Open.
- A new window for your browser appears that's connected to your Anyscale workspace cluster.
Configure the Anyscale workspaces VS Code extension to use SSH over HTTPS
This feature is available as a beta release.
If you launch local VS Code or Cursor from an Anyscale cloud deployed on Kubernetes, you connect over HTTPS by default.
If your Anyscale cloud uses AWS or Google Cloud, you can configure the Anyscale workspaces VS Code extension to use SSH over HTTPS.
Complete the following steps to enable SSH over HTTPS:
- Open VS Code or Cursor on your machine.
- Click Code > Settings > Settings to open the settings.
- Search for
anyscale
. - Under Anyscalecompute › Anyscale-workspaces: Connection Method, select https.
Remove Anyscale workspaces VS Code extension
To remove the Anyscale workspaces VS Code extension, complete the following steps:
- Open VS Code on your machine.
- Click Code > Settings > Settings to open the settings.
- Search for
remote.SSH.defaultExtensions
. - Next to
anyscale.anyscale-workspace
, click the X. - Click View > Extension to open the Extensions tab.
- Search for
Anyscale
. Find the extension named Workspaces published by anyscalecompute. - Click the gear icon and select Uninstall.