1、在Visual Studio Code的官網上https://code.visualstudio.com/Download直接下載mac版的,解壓后安裝。
2、安裝擴展應用插件 C\C++,C\C++ Clang Command Adapter,CodeLLDB(用來debug,解決Catalina不支持lldb調試問題)以及code runner(用來編譯)。
3、配置文件:
問題解決:VSCode:Cannot edit in read-only editor
https://blog.csdn.net/dpengwang/article/details/106713838
配置過程:
https://www.jianshu.com/p/adc400a0eefd
https://blog.csdn.net/neptune4751/article/details/105925558/
https://blog.csdn.net/eastbell/article/details/95206033