Visual Studio Code for C/C++ dev environment
We need install Visual Studio Code/GNU GLOBAL and Visual Studio Code Plugins for C/C++ dev environment.
Visual Studio Code
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich eco system of extensions for other languages (such as C++, C#,Java, Python, PHP, Go) and runtimes (such as .NET and Unity).
· License
https://code.visualstudio.com/License
This license applies to the Visual Studio Code product. The source code is available under the MIT license agreement.
· Version
March 2016 (1.0) -> April 2018(version 1.23)
· Download
https://code.visualstudio.com/Download
GNU GLOBAL
GNU GLOBAL is a source code tagging system that works thes ame way across diverse environments, such as Emacs editor, Vi editor, Less viewer, Bash shell, various web browsers, etc.
· License
GNU GLOBAL is part of the GNU project, and is free software. You can freely copy, modify and redistribute this program under GNU GPL.
· Download
http://www.gnu.org/software/global/download.html
Visual Studio Code Plugins
· C/C++
· C++ Intellisense
Install Visual Studio Code
Download the installer file from https://code.visualstudio.com/Downloadthen install it.
Install GNU GLOBAL
1. Download the zip file from http://www.gnu.org/software/global/download.html
2. Unzip the zip file to the location you like
3. Set the path of GNU GLOBAL bin folder to the environment
4. Run the command global in console, if you see the message below, GNU GLOBAL was installed successful.
Install Visual Studio CodePlugins
· C/C++
· C++ Intellisense
Usages
1. Chose File -> Open Folder, open your c/c++ project folder
2. Press Ctrl + ` or Ctrl + Shift + C to open the console, then excuse command gtags to generate the gtags files
3. Move the cursor to the function then press Shift+ F12 to find all references, after that you can find all the references