vscode 配置c++开发环境
时间: 2023-08-26 20:15:10 浏览: 163
vscode配置c++环境
为了在VSCode上配置C开发环境,你可以按照以下步骤进行操作。首先,确保你已经安装了VSCode和C/C++扩展。然后,打开文件夹并在其中创建一个C文件,例如test.cpp或main.cpp。接下来,你可以在该文件中输入C代码,例如:```#include <iostream>
using namespace std;
int main() {
cout << "hello" << endl;
return 0;
}```。完成后,你可以按下快捷键Ctrl+Shift+B,选择合适的构建任务(如g++编译器)并运行代码。这样,你就可以在VSCode上配置C开发环境并进行代码测试了。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [学习C++: VSCode配置C++开发环境](https://blog.csdn.net/xuyangcao123/article/details/122699179)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [VSCode:配置C/C++开发环境](https://blog.csdn.net/zhizhengguan/article/details/127642738)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *3* [整理:Visual Studio Code (vscode) 配置C、C++环境/编写运行C、C++(主要Windows、简要Linux)](https://blog.csdn.net/bat67/article/details/76095813)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文