Visual Studio Code for C/C++ dev environment

 

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


  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值