<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cells highlighter for VS Code? in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/cells-highlighter-for-vs-code/m-p/157747#M11803</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/164556"&gt;@Dimitry&lt;/a&gt;,&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea" data-pm-slice="1 1 []"&gt;From the public docs, this looks more like a limitation of the current VS Code experience.&lt;/P&gt;
&lt;P&gt;As you stated, Databricks now defaults notebooks to .ipynb format. However, you can still switch or convert notebooks between Jupyter (.ipynb) and source format if that better fits your workflow (&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-format" rel="noopener noreferrer nofollow" target="_blank"&gt;Manage notebook format&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;On the VS Code side, Databricks does support running and debugging .ipynb notebooks cell by cell with Databricks Connect, and %sql is supported in the sense that it executes via spark.sql (&lt;A href="https://docs.databricks.com/aws/en/dev-tools/vscode-ext/notebooks" rel="noopener noreferrer nofollow" target="_blank"&gt;Run and debug notebook cells with Databricks Connect&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;That said, the main extension docs also explicitly say that while the extension supports running R, Scala, and SQL notebooks as jobs, it does not provide deeper support for those languages within VS Code (&lt;A href="https://docs.databricks.com/aws/en/dev-tools/vscode-ext/" rel="noopener noreferrer nofollow" target="_blank"&gt;Databricks extension for Visual Studio Code&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;So based on that, I would not expect proper SQL-aware highlighting for %sql cells in Databricks .ipynb notebooks.I did come across references to third-party VS Code extensions, such as python-string-sql, that aim to highlight SQL within&amp;nbsp;Python strings, which may help a bit with spark.sql(...) readability. That said, I would treat those as optional workarounds rather than the main answer here, and they are not a fix for %sql notebook cells.&lt;/P&gt;
&lt;P&gt;If the goal is better SQL authoring in VS Code, the public Databricks path is to use SQLTools + the Databricks driver for SQL-centric work rather than relying on the main Databricks extension for SQL editing (&lt;A href="https://www.databricks.com/blog/2023/03/29/run-sql-queries-databricks-visual-studio-code.html" rel="noopener noreferrer nofollow" target="_blank"&gt;Run SQL Queries on Databricks From Visual Studio Code&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2026 15:32:43 GMT</pubDate>
    <dc:creator>Ashwin_DSA</dc:creator>
    <dc:date>2026-05-27T15:32:43Z</dc:date>
    <item>
      <title>Cells highlighter for VS Code?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/cells-highlighter-for-vs-code/m-p/157622#M11795</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I've recently had to switch to VS Code to run some Claude coding over my notebooks and python libraries.&lt;/P&gt;&lt;P&gt;I stumbled on highlighting cells for notebooks with SQL injection. It seems to be nowhere documented how to fix.&lt;/P&gt;&lt;P&gt;I use Databricks issued "&lt;SPAN&gt;IDE support for Databricks" extension, which back in 2023 was named "Databricks for Visual Studio Code" -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://www.databricks.com/blog/2023/02/14/announcing-a-native-visual-studio-code-experience-for-databricks.html" target="_blank" rel="noopener"&gt;https://www.databricks.com/blog/2023/02/14/announcing-a-native-visual-studio-code-experience-for-databricks.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Although it is not critical, but it is annoying.&lt;BR /&gt;Did anyone solve it with their VS code?&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 00:08:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/cells-highlighter-for-vs-code/m-p/157622#M11795</guid>
      <dc:creator>Dimitry</dc:creator>
      <dc:date>2026-05-26T00:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cells highlighter for VS Code?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/cells-highlighter-for-vs-code/m-p/157747#M11803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/164556"&gt;@Dimitry&lt;/a&gt;,&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea" data-pm-slice="1 1 []"&gt;From the public docs, this looks more like a limitation of the current VS Code experience.&lt;/P&gt;
&lt;P&gt;As you stated, Databricks now defaults notebooks to .ipynb format. However, you can still switch or convert notebooks between Jupyter (.ipynb) and source format if that better fits your workflow (&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-format" rel="noopener noreferrer nofollow" target="_blank"&gt;Manage notebook format&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;On the VS Code side, Databricks does support running and debugging .ipynb notebooks cell by cell with Databricks Connect, and %sql is supported in the sense that it executes via spark.sql (&lt;A href="https://docs.databricks.com/aws/en/dev-tools/vscode-ext/notebooks" rel="noopener noreferrer nofollow" target="_blank"&gt;Run and debug notebook cells with Databricks Connect&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;That said, the main extension docs also explicitly say that while the extension supports running R, Scala, and SQL notebooks as jobs, it does not provide deeper support for those languages within VS Code (&lt;A href="https://docs.databricks.com/aws/en/dev-tools/vscode-ext/" rel="noopener noreferrer nofollow" target="_blank"&gt;Databricks extension for Visual Studio Code&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;So based on that, I would not expect proper SQL-aware highlighting for %sql cells in Databricks .ipynb notebooks.I did come across references to third-party VS Code extensions, such as python-string-sql, that aim to highlight SQL within&amp;nbsp;Python strings, which may help a bit with spark.sql(...) readability. That said, I would treat those as optional workarounds rather than the main answer here, and they are not a fix for %sql notebook cells.&lt;/P&gt;
&lt;P&gt;If the goal is better SQL authoring in VS Code, the public Databricks path is to use SQLTools + the Databricks driver for SQL-centric work rather than relying on the main Databricks extension for SQL editing (&lt;A href="https://www.databricks.com/blog/2023/03/29/run-sql-queries-databricks-visual-studio-code.html" rel="noopener noreferrer nofollow" target="_blank"&gt;Run SQL Queries on Databricks From Visual Studio Code&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 15:32:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/cells-highlighter-for-vs-code/m-p/157747#M11803</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-05-27T15:32:43Z</dc:date>
    </item>
  </channel>
</rss>

