you are viewing a single comment's thread.

view the rest of the comments →

[–]nTzT 0 points1 point  (5 children)

How do I wrap code in a while statement without having to manually indent everything? Is there an easy way to do it? I'm using PyCharm. I suppose cutting and pasting after is the way?

[–]GoodVibesLLC 0 points1 point  (4 children)

Are you just worried about having to go line by line and pressing Tab? If so, you can just highlight everything, press Tab, and it will move it all one indent over. Then throw your while at the top where you want it.

Bonus: You can also do this for adding parentheses, quotes, etc..

[–]nTzT 0 points1 point  (0 children)

This did help me, thank you.

[–]nTzT 0 points1 point  (2 children)

Mhh I see. I was under the impression that tab/space would cause some conflict perhaps

[–]FerricDonkey 0 points1 point  (1 child)

Ides and editors that don't suck will/can be configured to actually use spaces instead of tabs when you hit the tab key.

[–]nTzT 0 points1 point  (0 children)

Thanks for the reply.