Eclipse PHP IDE - Custom Automatically Complete Tags

New to the Eclipse IDE and wondered if there is a way to add auto complete / change so that when you type:

mres

he will translate it into

mysql_real_escape_string()

I know about the normal completion of the PHP code, but I see nothing about creating custom shortcuts.

Thanks, Quibbling

+3
source share
2 answers

If you use PDT, create your own PHP template. From the Window> Preferences menu, choose PHP> Editor> Templates. Click the "Create" button, then use mresas the template name, then put

mysql_real_escape_string(${cursor})

like a template.

, mres Ctrl + Space. mres , . 2 , mres mres , , , .

+4

, IDE, mres, , "mysql_real_escape_string".

- ​​:

 function mres($string)
 {
 return mysql_real_escape_string($string);
 }
-2

Source: https://habr.com/ru/post/1729846/


All Articles