r/IPython • u/MaleficentScholar • Sep 04 '20
How to delete 4 spaces at once?
Sometimes IPython autoindents with extra 4 spaces which I don't want. For deleting the extra indent, I have to press backspace 4 times. Is there any better way to do that?
P.S. I'm using IPython on Linux in a terminal emulator. IPython version: 7.18.1
0
Upvotes
1
u/LewisgMorris Sep 04 '20 edited Sep 04 '20
Ctrl + backspace deletes 1 word backwards from the cursor if it helps. Ctrl + left cycles word by word. I use these both ALOT
1
u/animismus Sep 04 '20
Shift tab?
1
u/frickenfriedchog Sep 04 '20
Do you have any kind of opportunity to move to Jupyter?
1
u/Fenr-i-r Sep 05 '20
I think Ctrl+{ dedents. (On mobile, not sure which bracket is the standard, either curly or square, try them all).