Discuss any topics about the editor here


Postby flebber » Sun Dec 02, 2012 12:52 am

Is there a way to use reindent in editra to change the current files indenting.

I noticed by default the indenting of some python code if elif etc are incorrect by default so wanted to use reindent to fix it.

Re: reindent

Postby cody » Mon Dec 03, 2012 12:51 am

There isn't a good automated way to do it on a whole file. The best way to handle it currently is the feature that allows block indenting. You can select the lines you want to in/de-dent and change there indentation with either "Shift+Tab" dedent or Tab to indent them to the next tab stop.

An automated way to do this would be a great feature to add to the PyStudio plugin. Should fill out a feature request for it on the website.
User avatar
Site Admin
Posts: 1315
Joined: Mon Oct 09, 2006 2:49 am
Location: United States

Re: reindent

Postby flebber » Mon Dec 03, 2012 2:51 am

I noticed by default indenting for if elif and else fails.

Have experimented with on the command line and it works. Will add a feature request for it to be in pystudio when I get home.


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest