New to Eclipse IDE and was wondering is there is a way of adding an auto complete/change so that if I type:
mres
it will translate it to
mysql_real_escape_string()
I know of the normal PHP code completion, but couldn’t see anything about making custom shortcuts.
Thanks,
Niggles
If you using PDT, create your own PHP Template. From the menu Window > Preferences, choose PHP > Editor > Templates. Click New button, then use
mresas the template name, then putas a pattern.
To use it, just type mres and press Ctrl+Space. If there are no other alternative for the
mres, then your template will be used right away. If you happened to have 2 or more templates that started withmresor containmresin the template name, a popup will be showed so you can choose which you want to use.