⭐⭐常见变量: fileName / workspaceDir等问题;
1. ${workspaceFolder}表示的是当前打开文件夹所在的路径,也就是咱第一次从外边打开进来的文件夹;
2.${fileDirname}表示当前打开文件所在的路径不包括文件名;
3. ${fileBasenameNoExtension}表示当前打开的文件名,不包括路径;
⭐⭐VSCode 如何编写运行 C、C++ 程序? - 谭九鼎的回答 - 知乎: https://www.zhihu.com/question/30315894/answer/154979413 ⭐⭐几乎可以当作问题大全查看;⭐⭐
⭐: VSCode实现C++多文件编译:
1. ⭐⭐命令行⭐⭐: https://blog.csdn.net/qq_34801642/article/details/103770219?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.add_param_isCf&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.add_param_isCf
2. ⭐基于MinGW: https://blog.csdn.net/u012030174/article/details/107791407?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.add_param_isCf&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.add_param_isCf
2.1 单纯修改tasks.json中的参数; VS Code:编译运行根目录下不同文件夹中的文件: https://blog.csdn.net/qq_34801642/article/details/106419763
3. ⭐⭐使用CMake⭐⭐: https://blog.csdn.net/frostime/article/details/86756983?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.add_param_isCf&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.add_param_isCf
⭐其他:
快捷键整理: Ctrl+Shift+B单纯编译,按F5为编译加调试
整理:
1. Visual Studio Code (vscode) 配置C、C++环境/编写运行C、C++(主要Windows、简要Linux): https://blog.csdn.net/bat67/article/details/76095813?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.add_param_isCf&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.add_param_isCf
2. windows 10上使用vscode编译运行和调试C/C++: https://zhuanlan.zhihu.com/p/77645306
3. GDB进行调试时候文件路径不能有中文; 不会识别; https://blog.csdn.net/neve_give_up_dan/article/details/105471278?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.add_param_isCf&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.add_param_isCf
4. 视频教程: https://www.bilibili.com/video/BV14f4y127BC?from=search&seid=3260620193597550876 也是很多回答;
5. 知乎-多文件编写也建议看看: VSCode配置C/C++学习环境(小白向): https://www.zhihu.com/people/zhang_tao0906;
}