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

Easy​Clang​Complete

by niosus ST3 Trending

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

Details

Installs

  • Total 8K
  • Win 3K
  • OS X 2K
  • Linux 4K
Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 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
Windows 4 18 3 9 8 8 11 6 10 6 3 15 7 12 9 8 4 2 18 10 10 10 7 9 5 11 4 7 6 11 4 4 15 7 16 6 13 5 6 16 14 8 7 7 14 5
OS X 5 9 10 7 1 7 4 2 4 3 6 6 3 6 5 6 5 11 9 11 8 6 3 2 5 11 3 2 9 3 2 7 11 4 4 2 3 3 10 6 7 3 6 3 10 5
Linux 11 11 14 17 19 17 14 21 14 7 6 20 9 17 9 19 22 7 22 14 13 17 14 8 17 16 15 17 20 21 10 9 15 20 19 15 22 9 13 16 14 14 23 13 9 14

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.