Settings for the Databricks extension for Visual Studio Code
This article lists extension settings for the Databricks extension for Visual Studio Code. See What is the Databricks extension for Visual Studio Code?
Settings reference
The Databricks extension for Visual Studio Code adds the following settings to Visual Studio Code. Open the Settings editor using the Visual Studio Code Command Palette command Preferences: Open Settings. The settings.json file can also be modified directly.
Settings editor (Extensions > Databricks) |
|
Description |
---|---|---|
Bundles: Remove State Refresh Interval |
|
The interval in minutes at which the remote state of the bundle is refreshed. |
Clusters: Only Show Accessible Clusters |
|
Checked or set to The default is unchecked or |
Experiments: Opt Into |
|
Enables or disables experimental features for the extension. Available features include:
|
Logs: Enabled |
|
Checked or set to |
Logs: Max Array Length |
|
The maximum number of items to show for array fields. The default is |
Logs: Max Field Length |
|
The maximum length of each field displayed in the logs output panel. The default is |
Logs: Truncation Depth |
|
The maximum depth of logs to show without truncation. The default is |
Override Databricks Config File |
|
An alternate location for the |
Python: Env File |
|
The absolute path to your custom Python environment variable definitions ( |
Wsfs: Rearrange Cells |
|
Enable or disable rearranging cells in wrapper files created when using |
Environment variable definitions files
Visual Studio Code supports environment variable definitions files for Python projects. You create a file with the extension .env
somewhere on your development machine, and Visual Studio Code applies the environment variables within this .env
file at run time. For more information, see Environment variable definitions file in the Visual Studio Code documentation.
To have the Databricks extension for Visual Studio Code use your .env
file, set databricks.python.envFile
within your settings.json file or Extensions > Databricks > Python: Env File within the Settings editor to the absolute path of your .env
file.
Important
If you set settings.json
, do not set python.envFile
to the absolute path of your .env
file as described in the Visual Studio Code documentation, as the Databricks extension for Visual Studio Code must override python.envFile
for its internal use. Be sure to only set databricks.python.envFile
instead.