undo tab

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom

    undo tab

    Hi,

    as we all know we need tabs if we use for, if ... commands. Sometimes I
    find an easier way to do something and I can get rid of one or more for,
    if ... loops. Unfortunately I couldn't find a convenient way to get rid
    of the now unnecessary tabs. I am looking for something as convenient as
    inserting tabs (mark everything and push the tab key). I tried shift+tab
    and all other possible variations with alt/shift/ctrl. :-)

    Thanks for your help.
    Tom

  • Andreas Kuntzagk

    #2
    Re: undo tab

    Hi,
    [color=blue]
    > Maybe you can just give me a general hint how you do it and which editor
    > you use. That would probably also help.[/color]

    I use Xemacs, and do it with "Ctrl-c <"
    I don't know about Emacs on Windows, but the "GNU Emacs FAQ For Windows"
    can probably help you with this:



    HTH,
    Andreas

    Comment

    • Ulrich Petri

      #3
      Re: undo tab


      "Tom" <llafba@gmx.net > schrieb im Newsbeitrag news:3F02ECF0.1 05@gmx.net...[color=blue]
      > Hi,
      >
      > it doesn't work with any editor that I tried. The one I use on a regular
      > basis is the standard python IDLE. Sometimes I also use the editor of
      > pythonwin and Boa-Constructor.
      >
      > Maybe you can just give me a general hint how you do it and which editor
      > you use. That would probably also help.
      >
      > Thank you, Tom.
      >[/color]

      I use UltraEdit-32. There it works with Shift-Tab.

      Ciao Ulrich


      Comment

      • Hannu Kankaanpää

        #4
        Re: undo tab

        Tom <llafba@gmx.net > wrote in message news:<3F02ECF0. 105@gmx.net>...[color=blue]
        > Hi,
        >
        > it doesn't work with any editor that I tried. The one I use on a regular
        > basis is the standard python IDLE. Sometimes I also use the editor of
        > pythonwin and Boa-Constructor.
        >
        > Maybe you can just give me a general hint how you do it and which editor
        > you use. That would probably also help.
        >
        > Thank you, Tom.[/color]

        I had to change IDLE a bit for it to work. In Python path, go to
        Tools/idle and edit AutoIndent.py. Find windows_keydefs or unix_keydefs
        depending on your platform and change "<<dedent-region>>"-line to:

        '<<dedent-region>>': ['<Shift-Key-Tab>'],

        Comment

        • Ulrich Petri

          #5
          Re: undo tab


          "Tom" <llafba@gmx.net > schrieb im Newsbeitrag news:3F02ECF0.1 05@gmx.net...[color=blue]
          > Hi,
          >
          > it doesn't work with any editor that I tried. The one I use on a regular
          > basis is the standard python IDLE. Sometimes I also use the editor of
          > pythonwin and Boa-Constructor.
          >
          > Maybe you can just give me a general hint how you do it and which editor
          > you use. That would probably also help.
          >
          > Thank you, Tom.
          >[/color]

          I use UltraEdit-32. There it works with Shift-Tab.

          Ciao Ulrich


          Comment

          • Hannu Kankaanpää

            #6
            Re: undo tab

            Tom <llafba@gmx.net > wrote in message news:<3F02ECF0. 105@gmx.net>...[color=blue]
            > Hi,
            >
            > it doesn't work with any editor that I tried. The one I use on a regular
            > basis is the standard python IDLE. Sometimes I also use the editor of
            > pythonwin and Boa-Constructor.
            >
            > Maybe you can just give me a general hint how you do it and which editor
            > you use. That would probably also help.
            >
            > Thank you, Tom.[/color]

            I had to change IDLE a bit for it to work. In Python path, go to
            Tools/idle and edit AutoIndent.py. Find windows_keydefs or unix_keydefs
            depending on your platform and change "<<dedent-region>>"-line to:

            '<<dedent-region>>': ['<Shift-Key-Tab>'],

            Comment

            Working...