'Block indent jupyter notebook
Does anyone know how to get a command shortcut to work for block indenting and un-indenting in Jupyter notebooks? In the Jupiter notebook command group there is a command “automatically indent selection”. When I put in a command mode control-/ for that command the notebook does block commenting. I don’t see any other command that refers to indenting. I can’t seem to figure this
Solution 1:[1]
it's
Tab
If you want to unindent, then
Shift + Tab
You need to have selected more rows or it's intellisense...
Solution 2:[2]
In JupyterLab,ctrl+[ and ctrl+] work for indentation/deindentation.
These solutions also are guaranteed to work, whereas Tab and Shift+Tab can trigger actions like intellisense if your cursor is in the middle of a line.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Vickel |
| Solution 2 | tbrk |
