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

Easy​Clang​Complete

by niosus ST3

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

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

EasyClangComplete

Sublime Text 3 plugin that offers clang-based auto-completion for C, C++, Objective-C, and Objective-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.
  • 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 compilation 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.