IDE editor macros?

Is there a way to write macros or scripts for the IDE C/C++ editor? I really
miss microEmacs, for which I had written dozens of macros.

Thanks,

Kevin