使用VS Code作为NS3的开发环境
在进行NS3脚本编写前,Ubuntu上需要安装一个C/C++的IDE环境,这里选用VS Code来进行开发。
在Ubuntu上安装VS Code可使用Ubuntu-make来完成。Ubuntu-make的前身是Ubuntu Developer Tools Center,就是“Ubuntu开发者工具中心”。Ubuntu Developer Tools Center是在Ubuntu 14.10版本中出现的,到了15.04版本改名为Ubuntu-make了。
安装步骤
1、添加PPA源,将ubuntu-make加入apt软件仓库的列表,sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make

添加PPA源
2、更新apt,不然会在install时找不到源 sudo apt update

更新源
3、安装ubuntu-make sudo apt install ubuntu-make

安装ubuntu-make
4、安装VS Code,VS Code在ide类中。在ubuntu-make中,为开发环境分了一些大类:android、crystal、dart、electronics、games、go、ide、kotlin、maven、nodejs、rust、scala、swift、web。运行命令 umake ide visual-studio-code来进行安装,安装时会让用户选择安装目录

VS Code安装
查看相关授权信息之后,键入a选择接受便开始下载安装。

安装完成

作者:WillDST
链接:https://www.jianshu.com/p/c2ebe74d575d
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。