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

C++You​Complete​Me

by glymehrvrd ST3

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

Details

  • 0.1.7
  • github.​com
  • 2 years ago
  • 17 minutes ago
  • 3 years ago

Installs

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

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.