SynCodeIntel plugin

SynCodeIntel

Intro

Intelligent auto-completion plugin for SynWrite editor, for several lexers: Python (note: for Python lexer better use another plugin SynJedi), PHP, Perl, Ruby, JavaScript, Tcl, SCSS, LESS.
Based on CodeIntel2 library from ActiveState (it's also used in Komodo Edit).


How to install

Latest SynWrite supports plugins auto-installing. Just open "SynCodeIntel.rar" file in SynWrite, you'll see plugin installation prompt. Confirm it, then wait until "unrar" window finishes its work.

Note: if you have renamed one of supported lexers, correct also lexer name in "SynPlugins.ini" file, using command "Options -- Advanced -- Edit file SynPlugins.ini".


How to use

Notes

1) Auto-completion

Open for ex Python script, place caret after "objname." (where objname is some object instance), and press Ctrl+Space (default auto-completion shortcut). You should see message in SynWrite statusbar "Trying auto-complete: .........", then you should see, after server reply, auto-completion list for your objname.

For PHP lexer you should place caret after "objname->", PHP uses "->" instead of a dot.

2) Function hints

You can place caret after "objname.funcname(" and press Ctrl+Shift+Space (default func-hint shortcut), after server reply, you'll see function hint, above caret, for function "objname.funcname".

3) Find symbol definition

Right-click any identifier (class name, function name, variable, etc), to call editor context menu, and choose menu item "Find ID" (if menu item is disabled, you didn't configure "SynPlugins.ini" section [FindID]). If id declaration can be found by CodeIntel library, you'll see "Found" message in statusbar, and caret placed on line-start of id declaration (CodeIntel doesn't return column position).

Also you can use Ctrl+Alt+click, instead of context menu.


How to specify search paths

You can specify additional folders, for your custom libraries (for any of these languages: PHP/Python/Perl/Ruby/JavaScript), using one or both of methods:

Notes:


Config file

You may create file "SynCodeIntel.ini" in the plugin folder and write there few options in section [ini]:


About