C++YouCompleteMe
NOT MAINTAINED since I moved to CLion!! A Sublime C++ completion plugin, use ycmd as its backend.
Details
Installs
- Total 21K
- Win 10K
- Mac 3K
- Linux 7K
Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 2 | 0 | 0 | 1 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 2 | 0 | 0 | 2 | 0 | 2 | 0 | 1 | 2 | 1 | 3 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 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 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
C++YouCompleteMe
This is a Sublime Text 3 plugin aims at providing C/C++ IDE features such as semantic code completion, error highligting, goto definition and more. YCMD is used as the backend server.
ONLY TESTED ON UBUNTU
Features
- Semantic code completion
- Provide semantic completion proposals on
.
,->
and::
, done - Variable type indicator, not yet
- Provide semantic completion proposals on
- Error highligting
- Show error hints in code, done
- Show errors in panel, done
Jump to corresponding error in source when clicking problems panel, not yet.It seems ST3 wouldn't call on_selection_modified for output panel, so this feature can't be implemented. Maybe a detour will apply.
- Goto definition, done
Installation
Set up YCMD
YCMD is partially written in C/C++, so you must compile YCMD on your platform yourself or get a pre-compiled version. Then you need to set ycmd_path
and python_path
in settings.
In your ycmd_path
directory, following files are necessary:
ycmd/
third_party/
libclang.so
ycm_client_support.so
ycm_core.so
Windows x64 Install Guild provides an approach for Windows users to get compiled ycmd.
Ubuntu amd64 users can find compiled ycmd here. https://github.com/glymehrvrd/CppYCM/tree/compiled-ycmd.
Set Sublime Config
To enable prompt on .
, ->
and ::
, you need to add the following configure to your sublime setting. Or create a file named C++.sublime-settings
in Packages/User
with following as its content.
"auto_complete_triggers":
[
{
"characters": ".:>",
"selector": "source.c++ - string - comment - constant.numeric"
}
]
Make your own .ycm_extra_conf.py
Ycmd uses .ycm_extra_conf.py
to get compilation flags and other information. See c-family-semantic-completion-engine-usage for details.
C++YouCompleteMe will try to load .ycm_extra_conf.py
from the directory holding the opened file and all directories above it. If .ycm_extra_conf.py
is not found, all functions will NOT work.
License
Copyright 2015 Glyme Water. Licensed under the MIT License.