Skip to content
← Back to Community
Please do this
Profile icon
[deleted]

Ignore the repl. So I was working on some program right? And then I realize that I want to put a chunk of code into a while loop. But the section is like 100 lines. I'm not going through all those lines just to get them one indent higher. Can you please do something that allows me to increase the indentation level of multiple lines of code once?

Answered by DynamicSquid [earned 5 cycles]
View Answer
Comments
hotnewtop
Profile icon
DynamicSquid

You can. Just like @theangryepicbanana said, select some code, and press tab to indent. And just to add something else, if you press Shift + Tab, it will reverse the indent!

Profile icon
[deleted]
Profile icon
theangryepicbanana

If you select multiple lines at once and press the tab key, it will indent all of the selected lines (idk if it works on mobile)

Profile icon
PythonKiddie

Thank You SO [email protected]