Mac上XCode太占空间,卸载然后安装VSCode和Clang。在VSCode中再安装extension C/C++和Code Runner,配置Tasks: Configure Task,就可以开始Run C++ program了。
Visual Studio Code - Code Editing. Redefined
- https://code.visualstudio.com/
Clang - Wikipedia
- https://en.wikipedia.org/wiki/Clang
- Clang/ˈklæŋ/[5] is a compiler front end for the C, C++, Objective-C and Objective-C++ programming languages, as well as the OpenMP,[6] OpenCL, RenderScript and CUDAframeworks. It uses the LLVM compiler infrastructure as its back end and has been part of the LLVM release cycle since LLVM 2.6.
- It is designed to act as a drop-in replacement for the GNU Compiler Collection (GCC), supporting most of its compilation flags and unofficial language extensions.[7][8] Its contributors include Apple, Microsoft, Google, ARM, Sony, Intel and Advanced Micro Devices (AMD). It is open-source software,[9] with source code released under the University of Illinois/NCSA License, a permissive free software licence.
- The Clang project includes the Clang front end, a static analyzer and several code analysis tools.[10]
Comparing Clang to other open source compilers
- https://clang.llvm.org/comparison.html
Clang C/C++ Download and Installation Instructions
- https://www.ics.uci.edu/~pattis/common/handouts/macclion/clang.html
VS Code 最强插件指南 - CSDN
- https://mp.weixin.qq.com/s/MshppwwRFmbFx3aR7FVpEQ
在用VSCode? 看完这篇文章, 开发效率翻倍!
- https://mp.weixin.qq.com/s/XiT6uNQPIPGvkLbUcPnRqw
VS Code 神器插件:代码一键运行,支持超过 40 种语言 - CSDN
- https://mp.weixin.qq.com/s/bND98wd2mjdQXFWnRzskiw
Web 版 VS Code 来了!
不容错过的 Visual Studio Code 十大扩展组件
Vscode 小白使用介绍
用 VSCode 写 python 的正确姿势
来安装一个酷炫的 VS Code 主题
How to change the launched folder ?
- Navigate to your project folder and type
code .
- The Visual Studio Code Command Line Options
- https://code.visualstudio.com/docs/editor/command-line#_launching-from-command-line