Install YouCompleteMe in your editor
See the installation guide.
gLinux (Googlers only)
(This applies to anyone compiling on gLinux, even if editing over SSHFS on MacOS) Ignore the above. Search the Google intranet for "YouCompleteMe" for installation instructions.
Generate compilation database
YouCompleteMe (and other tools like clang-tidy) require a JSON compilation
specifies how each file is compiled. This database is normally stored in a file
The following will create a
compile_commands.json file in the local directory:
gn gen build-zircon --export-compile-commands
YouCompleteMe will use
compile_commands.json to do code completion and find
symbol definitions/declarations. See your editor's YouCompleteMe docs for
It should pick up the
json file automatically. If you want to move it out of
zircon tree, you can move the file to its parent directory.
For Fuchsia integration, see https://fuchsia.googlesource.com/fuchsia/+/master/scripts/vim/README.md
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.