This guide will walk you through the steps of connecting VScode to databricks. There is a video you can watch or step by step instructions.

To begin please use the link to the AVD that is sent to you in the onboarding email.

Step 1 is installing and setting up the Databricks extention.
Once this has been completed you will not have to do it again.
Step 2 may have to be completed again on restarting VScode. ======= Once step 1 has been completed you will not have to do it again.
step 2 may have to be completed again on opening VScode. You will also have to follow the link to the AVD that is sent to you in the onboarding email.

Part 1 - Only done once

Open VScode

Go to extensions

Located on the left hand tab bar, the bottom icon

Install Databricks extension

Open folder

Select folder with your code or create new

Configure Databricks

Copy URL

only the first bit of the URL has to be copied, not the full thing. Also ctrl+C sometimes has to be pressed twice in the AVD for it to copy

Paste URL

Edit Databricks profiles

Make sure you click on Edit Databricks profiles and not Azure CLI, a blank .datbrickscfg file will appear

Copy this text

[DEFAULT]
host  = <your-host-URL>
token = <your-token>

replace host with Databricks URL, we will create a different token separately

On databricks, top right corner click user settings

Generate new token

Copy Token

Paste token into config file, save and close

Part 2 - May have to do this again

Configure again, click the host

Click the profile you have just configered

Left hand side should now display workspace and clusters

On Left hand sign, click the cog on Sync Destination, enter a name and enter

Enter again

Click the small arrow in top right and click ’Run File on Databricks

Code should run