当前位置:网站首页>Vscode three configuration files about C language
Vscode three configuration files about C language
2022-07-07 17:38:00 【Larry Chow】
stay cmd.exe Enter the following command :
gcc -v -E -x c++ -
When used vscode Open folder , Automatically created .vscode Folder , In this folder , establish 3 Configuration files , Namely c_cpp_properties.json、launch.json、tasks.json.
Put the information in the red box in the configuration file , Replace .
stay c_cpp_properties.json in
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceRoot}",
"D:/programFiles/MinGW/include/**",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include/c++",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include/c++/mingw32",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include/c++/backward",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/../../../../include",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include-fixed"
],
"defines": [
"_DEBUG",
"UNICODE",
"__GNUC__=6",
"__cdecl=__attribute__((__cdecl__))"
],
"intelliSenseMode": "msvc-x64",
"browse": {
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": "",
"path": [
"${workspaceRoot}",
"D:/programFiles/MinGW/include/**",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include/c++",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include/c++/mingw32",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include/c++/backward",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/../../../../include",
"D:/programFiles/MinGW/bin/../lib/gcc/mingw32/6.3.0/include-fixed"
]
}
}
],
"version": 4
}
stay launch.json in
{
"version": "0.2.0",
"configurations": [
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "cmd",
"preLaunchTask": "echo",
"args": [
"/C",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
"&",
"echo.",
"&",
"pause"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole":true
},
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "C:\\Program Files\\mingw64\\bin\\gdb.exe",// My own computer gdb
"preLaunchTask": "echo",// Here and task.json Of label Corresponding
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
stay tasks.json in :
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "gcc",
"args": [
"-g",
"${file}",
"-o",
"${fileBasenameNoExtension}.exe",
"-fexec-charset=GBK"// Solve the Chinese garbled code
]
}
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
}
}
边栏推荐
- How to implement safety practice in software development stage
- 字符串 - string(Lua)
- 99%的人都不知道|私有化部署还永久免费的即时通讯软件!
- DatePickerDialog和trimepickerDialog
- 【TPM2.0原理及应用指南】 5、7、8章
- Please insert the disk into "U disk (H)" & unable to access the disk structure is damaged and cannot be read
- 无法链接远程redis服务器(解决办法百分百)
- The mail server is listed in the blacklist. How to unblock it quickly?
- 深入浅出图解CNN-卷积神经网络
- Show progress bar above window
猜你喜欢
让保险更“保险”!麒麟信安一云多芯云桌面中标中国人寿, 助力金融保险信息技术创新发展
DatePickerDialog and trimepickerdialog
Function and usage of textswitch text switcher
Functions and usage of imageswitch
How to choose the appropriate automated testing tools?
【可信计算】第十三次课:TPM扩展授权与密钥管理
网络攻防复习篇
2021-06-28
Several best practices for managing VDI
DevOps 的运营和商业利益指南
随机推荐
ViewSwitcher的功能和用法
LeetCode 535(C#)
Share the latest high-frequency Android interview questions, and take you to explore the Android event distribution mechanism
【网络攻防原理与技术】第6章:特洛伊木马
【网络攻防原理与技术】第4章:网络扫描技术
第2章搭建CRM项目开发环境(搭建开发环境)
Enum + Validation 的个人最佳实践 demo 分享
【网络攻防原理与技术】第7章:口令攻击技术 第8章:网络监听技术
【解惑】App处于前台,Activity就不会被回收了?
管理VDI的几个最佳实践
青年时代历练和职业发展
专精特新软件开发类企业实力指数发布,麒麟信安荣誉登榜
Matplotlib绘制三维图形
textSwitch文本切换器的功能和用法
Numberpick的功能和用法
【分布式理论】(一)分布式事务
[video / audio data processing] Shanghai daoning brings you elecard download, trial and tutorial
命令模式 - Unity
Flask build API service SQL configuration file
TabHOST 选项卡的功能和用法