Clang-Complete
a auto complete plugin for sublimetext3
Details
Installs
- Total 5K
- Win 26
- Mac 5K
- Linux 28
Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Clang-Complete
A clang plugin for Sublime Text 3 (MAC OSX / Linux / Windows), providing: - Auto complete - Syntax diagnostic - Goto definition
Using libclang (llvm 3.5.0).
Install the Plugin
From git repository
Note: To determine the path to Sublime Text 3 Packages directory, start Sublime Text 3, Choose menu Preferences
-> Browse Packages
$ cd <sublime-text-3 Packages directory> # see note above
$ git clone https://github.com/lvzixun/Clang-Complete.git
$ cd Clang-Complete
$ make [linux / windows]
On Ubuntu, $ make linux
, On Mac OSX, run the default $ make
.
Windows prerequisites
- install MINGW-W64 32 (only if you want to compile yourself - binary is included) e.g. from here
- install LLVM 3.6.1
From package control
- Install package control
command+shift + p
->install package
- Search
Clang-Complete
-> install
Installation using Package Control is only supported on Mac.
Configuration
Global options can be set in <sublime-text-3 Packages directory>/clang-complete/cc.sublime-settings
file. Header files can be included in the include_options
section.
Alternatively, header files can also be included from the Sublime Text 3 <name>.sublime-project
files by adding the cc_include_options
subsection to the settings
section in your <name>.sublime-project
file:
"settings":
{
"cc_include_options":
[
"-I/headfile_path1",
"-I/headfile_path2",
"-I/headfile_path3"
// ...
]
// ...
}
Example settings for Windows:
"settings":
{
"cc_include_options":
[
"-isystem", "C:\\MinGW\\i686-w64-mingw32\\include",
"-isystem", "C:\\MinGW\\i686-w64-mingw32\\include\\c++",
"-isystem", "C:\\MinGW\\i686-w64-mingw32\\include\\c++\\tr1",
"-isystem", "C:\\MinGW\\i686-w64-mingw32\\include\\c++\\i686-w64-mingw32",
"-isystem", "C:\\LLVM\\lib\\clang\\3.6.1\\include",
"-DBOOST_USE_WINDOWS_H"
]
}
if "cc_include_options"
exists in your project settings, it will merge to
the "include_options"
defined in cc.sublime-settings
.
Preview
Donate
alipay支付宝账号: lvzixun@gmail.com
TODO LIST
feature | status |
---|---|
support mac osx | done |
support linux | done |
support window | done |
support sublimetext 2 | X |