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

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.