cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

SQL Notebook Tab Spacing

KFries
New Contributor II

My SQL notebooks in databricks suffer from having at least several different counts of spaces between tab marks.  It makes it very difficult to maintain pretty code spacing.  What sets the tab spacing in SQL language notebooks, and how is it set/adjusted?  Also, I co-edit the notebooks using git/github and intelliJ (which could be a source of the problem), but I want the indenting to be correct for my tastes as rendered in the databricks notebook because that's where I run it with data.  I am constantly adjusting spacing using the ctrl-squarebracket shortcuts.

1 REPLY 1

louisv-bambaw
New Contributor II

I’m experiencing the same issue with SQL cell indentation in Databricks notebooks. While editing, I’ve noticed that the indentation level can vary from one cell to another - sometimes it’s two spaces, other times it’s four. This inconsistency makes it challenging to maintain a uniform look across SQL cells.

It would be helpful if there were a dedicated parameter for SQL cell indentation, similar to the existing “Indentation for Python cells in new notebooks (in spaces)” option for Python cells.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group