cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cells highlighter for VS Code?

Dimitry
Valued Contributor

Hi all

I've recently had to switch to VS Code to run some Claude coding over my notebooks and python libraries.

I stumbled on highlighting cells for notebooks with SQL injection. It seems to be nowhere documented how to fix.

I use Databricks issued "IDE support for Databricks" extension, which back in 2023 was named "Databricks for Visual Studio Code" - https://www.databricks.com/blog/2023/02/14/announcing-a-native-visual-studio-code-experience-for-dat...

Unfortunately Databricks changed file format from .py to .ipynb and had not updated extension, neither provided any searchable documentation, on how to get VS code to work with the new notebook format, when it comes to SQL parts of it. I can get neither spark.sql() nor %sql cells to highlight correctly (the first is displayed as plain text, the second if treated as broken python code).

Although it is not critical, but it is annoying.
Did anyone solve it with their VS code?   

0 REPLIES 0