sublimetext2 - Sublime Text 2 - Auto complete issues -


I recently switched the espresso with Sublime Text 2 due to a lot of available packages. Mainly use this software to develop and install some packages.

SublimeCodeIntel for all autocomplete, Andy PHP, PHP finishing kit and finishing.

There is a reason to install them all, and not just the Sublime CodeIntel because SublimeCodeIntel did not work as I expected

None of these (together or not) project The classes, functions, or variable names mentioned in the files will

just an example to describe the problem.

If I define a simple task in one of my files,

  function sayOutLoud ($ x) {Echo $ x; }  

And when I start typing OU ... I would like to say the name of the function, and if I choose sayOutLoud, I have to know what the function takes arguments (Of course I know, but you understand). Should not any of these packages do the same?

UPDATE: After a reboot, start something awkward enough to start work but it is not giving me the logic list

If I have a SublimeCodeIntel package Was said), then nothing changes, so in other words, it does not add anything when it is active.

If you use this function frequently, I suggest you do this by creating your snippet Here's a simple snippet you can use (you do not need any sophisticated plug-ins) 1) Go to Tools> New Snippet , the default content of the page that you will get something Is:

  & lt; Snippet & gt; & Lt; Content & gt; & Lt ;! [CDATA [hello, $ {1: this} is a $ {2: snippet}. ]] & Gt; & Lt; / Content & gt; & Lt ;! - Optional: Set a tab trigger to define the way to trigger the snippet - & gt; & Lt ;! - & lt; Tabstritter & gt; Hello & lt; / TabTrigger & gt; - & gt; & Lt ;! - Optional: Set a border to trigger the snippet - & gt; & Lt ;! - & lt; Scope & gt; Source.python & lt; / Scope & gt; - & gt; & Lt; / Snippet & gt;  

2) Write your function definition in the third line (Hello, $ {1:}} is a $ {2: snippet}.)

Our Function Definition This will be like this:

  function sayOutLoud ($ {1: \ $ x}) {$ {2: echo} $ {3: \ $ x}; $ {4:}}  

3) The sixth line simulation , if you type sayOutLoud (replace the sixth row with the following), you Tab :

  & lt; TabTrigger & gt; Say auto loud & lt; / TabTrigger & gt; File under  

4) file sayOutLoud.Sublime-snippet

Save if you open any php file and you type, you will see an auto completion and if you press the tab then you will see the function added to the file and that IT.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -