I am used to using Tab / Shift + Tab to indent / de-indent a block of code in Jupyter Notebook. However, the behavior seems inconsistent in jupyter lab, it works fine when selecting a block of code, but if there is some code indented and I want to open the tooltip for a function, which also uses the Shift + Tab shortcut, both actions are performed at the same time, the tooltip opens and the line is de-indented. Honestly, it is starting to be very frustrating to have to re-indent the unintentionally de-indented line. I do not see any option to change this behavior, nor an option to disable the Shift + Tab shortcut to de-indent, which I would gladly disable to stay only with the Ctrl + [ shortcut. Does anyone know any configuration that I can change to fix this issue?
Just one simple example:
import numpy as np
for i in range(5):
array = np.array(i)
Maybe I want to open the tooltip for np.array, so I put the cursor after np.array( and press Shift + Tab, which opens the tooltip, but gives me:
import numpy as np
for i in range(5):
array = np.array(i)
FIY, the behavior on the classical notebook was to only de-indent if the whole line or more than one line was selected, which for me is much more natural.