r0b0tz
music, art, parties, technology, code

I often find myself coding in a frenzy, not keeping tabs on my tabs (ha!) … thus having editors with some sort of reformatting ability is a necessity.

In Windows (even in Parallels) I use UEStudio, which doesn’t have the best formatting built in, but it does have a re-indentation command… the problem is, in order to use the function, you have to have the text you want re-indented already selected.

I would CTRL-A, to select all and then re-indent. This got old quick because I would always lose my place…

And thus, this macro was born.

It creates a bookmark, selects all text, reindents, deselects, returns to bookmark.

There is no way to go to the LAST bookmark, so if you use bookmarks at all (I don’t) this will NOT WORK =(

Macro code:

ToggleBookmark
SelectAll
ReIndentSelection
GotoBookMark 0
ToggleBookmark

To use, go to Macro » Edit Macro » New Macro



Leave a comment or two

Name (required)

Email (required)

Website

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Feel free to leave a comment

Log in