0

My English just as my programming, are not good, apologize.

I'm using SciTE to run python code. I added a while statement to the outside of a block of code. Then, in order to indent the next block of code, I selected it and pressed tab.

After some more coding, I now want to delete the while statement and dedent (unindent) the block of code that's in the while-loop. How can I dedent a block of code?

Hope people can understand my poor description, man. Thanks!

inspectorG4dget
  • 110,290
  • 27
  • 149
  • 241
StayFoolish
  • 531
  • 1
  • 12
  • 29
  • 1
    Did you try highlighting the block and hitting shift+tab? Usually is the inverse of tab but I haven't used that editor. – Brian Aug 26 '13 at 04:59
  • The usual terms for what you're trying to do are "unindent" or "dedent". – user2357112 Aug 26 '13 at 05:07
  • Thanks very much, it works! Sometimes, there's some error in my code, but I want to know if I could step through the run in SciTE like using Virtue Studio to run C++, so I can know in which step it's wrong, like moving through line by line? Also, could I know the value of each variable? Any other good softwares running python like that? – StayFoolish Aug 26 '13 at 05:08
  • For those features I like Eclipse with the pydev plugin. Otherwise I usually stick to a normal text editor, which one depending on my platform at the time. – Brian Aug 26 '13 at 05:11

1 Answers1

1

Highlight the block of code and press shift+tab

Brian
  • 3,091
  • 16
  • 29