IntelliJ Macro menu

Iulia picture Iulia · Jan 21, 2010 · Viewed 24.6k times · Source

I've just started playing with macros in IntelliJ. I recorded several then played back until I decided to add keymap shortcuts to my macros. I went to Settings and pressed Alt+C to add a new child map because I couldn't edit the parent. Since then the macros are no longer accessible from the Tools menu, not to mention that the shortcuts don't work. I tried removing the shortcuts from the keymap but even though I press Alt+R or Alt+L, it still does not revert them back. And TAB has stopped working .. when writing sout +TAB ..nothing happens anymore... HELP

Answer

Iulia picture Iulia · Jan 29, 2010

Sorted! sout+TAB is part of live templates..

If you open the IDE Settings window, you will see Live Templates.. Under output you should find sout(Prints a string to System.out).. if not, click Add and then type sout for the Abbreviation section, type in a description and then for the template text put System.out.println("$END$");

I use the Default keymap in IntelliJ now...

Thought this might help someone...