"De-Indent" in a macro?

"De-Indent" in a macro?

5
NewbieNewbie
5

    Jan 11, 2005#1

    I've been trying to create a macro that does the following:
    Select All
    Shift-Tab (de-indent) repeated ten times
    Strip trailing spaces
    Deselect all

    However, I can't find the "de-indent" action anywhere in the macro UI. Is there some other way to gain access to it, or is this a feature that just hasn't been added yet.

    Thanks.

    206
    MasterMaster
    206

      Jan 11, 2005#2

      Could you do a regular expression search that would say something like

      "Find all lines in the selected text that start with any number of spaces or tabs, and replace all occurrences of those spaces or tabs with nothing"

      Find RegExp "^[ \t]*"
      Replace All SelectText ""


      You could possibly specify the number of spaces or tabs, to move routines to the left but have them remain indented.
      Software For Metalworking
      http://closetolerancesoftware.com

      5
      NewbieNewbie
      5

        Jan 11, 2005#3

        Good one. Thanks.