Overview Version History Q & A Rating & Review
C/C++ GNU Global
Provide Intellisense for C/C++ using
This extension is forked/rewriten from
C/C++ Intellisense and is still preliminary. If you encounter any problems, please go to Github Issues for issue report and feature request. Usage
This extension requires GNU Global (>=6.5). You can download the binary from
For Ubuntu 18.04 (and after) user, you can install it via apt:
sudo apt install global
Add the folder of global executable to PATH enviroment variable, or specify gnuGlobal.globalExecutable and gnuGlobal.gtagsExecutable configuration.
GNU Global is a tagging system. There's no language service running in the background. You need to press F1 and execute
Global: Rebuild Gtags Database to generate tag files before you can use other features.
Specify the output encoding if you're using non-UTF8 Windows. You can find the supported encoding from
Ex: Big5 for Traditional Chinese on Windows
Global: Rebuild Gtags Database
Generate tag files for global by running 'gtags'.
Upon saving your code, this extension will try to update tags files incrementally by running 'global -u'. If the auto update didn't do well for you, you can manully run this command to rebuild all tag files.
You may want to add the tag files, which are GTAGS, GRTAGS, and GPATH, to your global gitignore setting.
Global: Show GNU Global Version
Show global verion by running 'global --version'.
Go to Definition (F12)
Find All References (Shift + F12)
Go to Symbol in File (Ctrl + Shift + O)
Controls whether global should automatically update the tags after file saved. Can be Enabled, Disabled and Default.
Default: disable autoupdate if GTAGS database size is larger than 50MB. It is recommended to disable this feature if the project is too large.
Enable/disable auto-completion feature. Default is enabled.
If this option is enabled, each file whose suffix is ".h" is treated as a C++ source file. You need to rebuild tags if you change this configuration. Default is disabled.
Used as the path to search for library functions. If the specified tags is not found in the project, this extension also searches in these paths.
Must be absolute paths.
'Rebuild Gtags Database' doesn't rebuild the tag files for these libraries. You need to build tags for them individually.
Folder / Workspace setting will override user setting just like other configurations.
Specify the path to the global. Default is 'global'.
Specify the path to the gtags. Default is 'gtags'.
If objDirPrefix is set and objDirPrefix directory exists, gtags creates objDirPrefix/project_dir directory and makes tag files in it. Global will also try to search tag files in that directory.
This option is useful if you don't wan't to create tag files in your project directory.
Only support UNIX style filesystem so Windows is unsupported.
Skip symbolic links while building tag files. It is useful if you have large project with lots of symbolic link.
Could be None, File, Directory or All. Default is None.
Requires GNU Global 6.6.3
Log more information to debug this extension. Default is Disabled.
If this extension doesn't do well, please try to enable this config. You can find some error logs in Developer Tools (Help > Toggle Developer Tools).
GNU global doesn't do any AST parsing, so the auto completion doesn't understand class members and etc.