General > General Programming

hotkey text added to file

(1/1)

williethewimp:
Hi,

Does Slickedit support the ability to create headers/blocks of generic code and then insert it in your code when you type a hotkey or some type of trigger? I don't know what it is called, so I don't know what to look for in the menus.

Thanks!
Todd

williethewimp:
Nevermind, I guess it is just "record a macro, paste the text that you want, stop the macro and bind it".

Thanks,
Todd

LBCEi:
That is one way to do it.  You can also use the 'aliases' features.  Search the Help.  This feature is quite flexible and you can even set it up to prompt for input when expanding an alias to customize the text that gets inserted.

I use this to insert comment headers when creating a new source file, for example.

williethewimp:
I'll take a look, thanks! It would be nice to add some specific names to the code generation.

Todd

Clark:
You can have an alias prompt for parameters so you can insert them in your alias text. SlickEdit also support code templates which is used to generate one or more files (not pieces of files like aliases).

Navigation

[0] Message Index

Go to full version