欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

修改C/C++的默认编辑器

程序员文章站 2024-03-04 17:33:23
...

C++

# update-alternatives --config c++
There are 2 choices for the alternative c++ (providing /usr/bin/c++).

  Selection    Path              Priority   Status
------------------------------------------------------------
  0            /usr/bin/g++       20        auto mode
* 1            /usr/bin/clang++   10        manual mode
  2            /usr/bin/g++       20        manual mode

C

# update-alternatives --config cc
There are 2 choices for the alternative cc (providing /usr/bin/cc).

  Selection    Path            Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gcc     20        auto mode
  1            /usr/bin/clang   10        manual mode
  2            /usr/bin/gcc     20        manual mode

 

相关标签: C++学习