kriomant / ClangAutoComplete

Sublime Text 3 plugin that offers auto-completion of C/C++ structure members or class attributes and methods.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#ClangAutoComplete

Sublime Text 3 plugin that offers auto-completion of C/C++ structure members or class attributes and methods.

Example

##Installation

  1. Install "clang". Note that some people reported issue with clang 3.5.2 when compiled from Cygwin. If you are facing issues on Windows, try to download directly from the official clang website.

  2. Install from Package Control, or clone this repository and put it in your Sublime's packages directory to install from git.

  3. Edit the settings to your needs (in menu Preferences/Package Settings/ClaugAutoComplete/Settings).

  4. Make sure Sublime's own auto-complete settings are properly configured, I've had trouble with mine. Here is my C.sublime-settings as an example

     {
             "auto_complete": true,
             "auto_complete_selector": "source - comment",
             "auto_complete_triggers":
             [
                     {
                             "characters": "."
                     },
                     {
                             "characters": ">"
                     },
                     {
                             "characters": ":"
                     },
             ],
             "extensions":
             [
                     "c",
                     "h"
             ]
     }
    

##Settings

  • include_dirs: List of directories where relevant header files are located
  • autocomplete_all: Trigger auto-completion on every keypress (will slow down sublime)
  • selectors: List of characters that will trigger auto-completion ( if "autocomplete_all" is set to "false" )
  • clang_binary: Location of clang binary (if it is not in the path)

About

Sublime Text 3 plugin that offers auto-completion of C/C++ structure members or class attributes and methods.


Languages

Language:Python 73.5%Language:JavaScript 26.5%