Tell me how to make it so that not only native, but also user-defined functions (PHP) can be autocompleted in ST2? It substitutes only names, but no arguments, and does not display a hint, as for native functions.
1 answer
Autocompletion in ST2 works somewhat differently: when typing, the pop-up tooltip works on the text already added to the source code. This is not the autocompet that, for example, in WebStorm or other IDEs.
- In the sense of? Here I am writing a
prin
, the list falls out, it is allocated there first byprint_r
, I press Enter, and eventuallyprint_r(expression)
is written, that is, it wrote the whole signature for me. And if I do this with my function, then he only writes the name, without arguments. - Oleg Arkhipov - In the sense, I understand that he appends the words that are in the current file (there is also a plugin for the included files), but then he appends it. What, absolutely it can not be done? :-( - Oleg Arhipov
- I mean, by default, ST2 has no idea about functions and their signature in PHP. It simply helps you to enter the text that was written earlier. If my statement is not true, then most likely you are using plugins. - andreycrane
- You need to install plugins, if any exist. Check them out on Github. - andreycrane
- I wrote above how he behaves. He adds PHP signatures. Without any third-party plug-ins (in the sense I did not put them). Well, he has there, however, PHP folder in add-ons, as well as for many other languages. I'll check. - Oleg Arkhipov
|