What are... some shortcuts we can use in notebooks?
Shortcuts are always helpful! To see any of the keyboard shortcuts in Databricks, when not editing a cell, hit the 'H' key.
Below are some of the more common ones that you may find helpful:
ctrl + /
This will comment out all selected code. If all code is selected then it will default to python #, SQL will be -- etc
ctrl + enter
This will run select command section
Alt + Shift + up
Run all commands above select command (not including selected command)
Alt + Shift + down
Run all commands below select command (including selected command)
ctrl + Shift + F
Format code
ctrl + Alt + up
Move command up 1 cell
ctrl + Alt + down
Move command down 1 cell
Source