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

C++You​Complete​Me

by glymehrvrd ST3

NOT MAINTAINED since I moved to CLion!! A Sublime C++ completion plugin, use ycmd as its backend.

Details

  • 0.1.7
  • github.​com
  • 10 years ago
  • 56 minutes ago
  • 11 years ago

Installs

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

demo

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.