Yay! I got my first request. @Courtreporterbd asked about setting up macros for inserting text (ex: “All right.” “, you know,” “uh-huh.”), so I’m going to do a little tutorial on the easy way to do macros using insert text as an example.
Here’s a screenshot for reference.
The first thing you should do any time you want to make a macro is browse around the list of macros that Eclipse has already made for you.
Alt+u -> Edit -> Macros.
Look around here for macros that either do what you want it to or do something similar. (I wish there was a search function for their macros since there’s a bazillion of them, but alas, best you can do is just try and guess what they’d name it.)
In this case, you’d look for macros that begin with “Insert:” and select one of those at random. (You will probably not have one that says “Pizza.” :)
Select that macro so it’s highlighted on the list, then click “New.” DO NOT click “Edit.”
A new box will pop up and you’ll notice on the right it will show the sequence of commands for the macro. That’s really nice because now you know how the Eclipse people think the macro should be formatted, and they know what they’re doing!
Adjust the macro commands to suit your needs.
This step is highly dependent on what you want your macro to do, so all I can recommend is using the “Add Command” at the bottom right of the menu rather than using keyboard shortcuts. It ensures the computer will always use the right command, whereas using keyboard shortcuts is riskier because if you change a keyboard shortcut, the computer won’t know to change it in the macro list and it will do strange things you didn’t want it to.
There is one other piece of advice I have for you because I got REALLY confused when I first started playing with macros. If you click on the command list, every keystroke will show up on that list. I would press the up and down arrows trying to go up and down the list of macros, and it would just add entries for “Up” and “Down” instead of moving up and down the list. This is the one time you always want to use the mouse.
In this case, the insert text commands are pretty simple. The only real commands are “Cmd: Type Text” and “Enter.” The stuff in between is just text. So here, you wouldn’t go to “Add Command” since it’s just text you’re typing in. Simply select the text commands (PIZZA.[ ][ ]) and delete them. Then select the “Enter” command and start typing the text you want to insert. N.B. If you mess up, select the offending letter(s) with your mouse and click delete. If you press backspace it will only insert a “Backspace” command.
Name your macro, preferably something similar to what Eclipse has so you’ll be able to find it easily later on.
Select the “Speed Keys” button and select the keyboard shortcut you want for the macro.