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

Easy​Clang​Complete

by niosus ST3 Trending

:boom: Robust C/C++ code completion for Sublime Text 3

Details

Installs

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

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.