Global indent

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Aug 22 16:59:17 EDT 2014


On 22/08/2014 21:20, Chris Angelico wrote:
> On Sat, Aug 23, 2014 at 5:46 AM, Seymore4Head
> <Seymore4Head at hotmail.invalid> wrote:
>> On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head
>> <Seymore4Head at Hotmail.invalid> wrote:
>>
>>> Is there a way to indent everything again?
>>>
>>> Say I have a while statement with several lines of code and I want to
>>> add a while outside that.  That means indenting everything.  Is there
>>> a global way to do that?
>>
>> Ok.....so the answer is no using IDLE (Python GUI)
>
> This is very much an editor question, so you ought to have said *right
> at the beginning* that you're using Idle's editor.
>
> Try selecting a bunch of text and hitting Tab.
>
> ChrisA
>

There are also indent and dedent options on the format menu.  Using 
default settings on Windows 8.1, python 3.4.1 these are CTRL+] and 
CTRL+[ respectively.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list