Reputation: 2663
Here is a python code sample.
r = request.get(...)
....
....
....
print r.text
Now I want to write an function.
def get_response(url):
r = request.get(...)
....
....
....
print r.text
My target is :
def get_response(url):
r = request.get(...)
....
....
....
print r.text
Adding tab in each line is very inconvenient. Is there any short cut for this situation? My ide is PyCharm
.
Upvotes: 1
Views: 614
Reputation: 1351
Highlight the lines you want to indent and hit tab. it'll move them all across.
Upvotes: 1