ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Easy​Clang​Complete

by niosus ST3

C/C++ autocompletion in Sublime Text 3 for human beings

Details

Installs

  • Total 6K
  • Win 2K
  • OS X 1K
  • Linux 3K
Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9
Windows 8 8 18 11 12 13 11 15 8 6 18 14 18 9 5 11 10 11 17 13 6 4 10 11 9 11 14 4 7 7 16 9 9 8 8 15 12 9 13 15 10 6 8 9 8 9
OS X 6 5 9 9 10 3 8 6 6 10 7 6 8 3 8 7 21 9 9 14 6 12 8 7 9 15 6 4 3 6 2 6 6 3 11 6 5 4 17 7 11 15 8 14 11 14
Linux 5 7 12 24 19 26 21 9 6 14 23 26 17 23 15 17 28 29 27 30 14 11 8 16 19 21 13 14 8 8 14 22 17 12 9 15 10 20 11 23 25 21 11 12 21 19

Readme

Source
raw.​githubusercontent.​com

EasyClangComplete

Sublime Text 3 plugin that offers clang-based auto-completion for C++

Example

Simple setup!

You are just three simple steps away!

1. Install this plugin

2. Install clang

  • Ubuntu : sudo apt-get install clang
  • OSX : ships clang by default. You are all set!
  • Windows : install the latest release from clang website.
    • WARNING: there seems to be a bug with libclang when using clang 4.0. Please install 3.9 on Windows for now.
  • Other Systems : use your package manager or install from clang website.
  • clang website: http://llvm.org/releases/download.html

3. Configure your includes

Using CMake?

Plugin will run cmake on a proper CMakeLists.txt in your project folder and will use information from it to complete your code out of the box. You're all set!

Have a compilation database?

Plugin will search for a compilation database compile_commands.json in the project folder and will load it to complete your code.

If you want to specify a custom path to a comilation database you can do it in settings:

"flags_sources": [
    {"file": "compile_commands.json", "search_in": "<YOUR_PATH>"},
]

None of the above?

You will need a little bit of manual setup for now. Please see the following instructions.

You're all set!

For more information please refer to the GitHub page.