关于#c++#的问题,请各位专家解答!

img

vscode编译代码出现以上错误提示
vscode编译代码出现以上错误提示
vscode编译代码出现以上错误提示
vscode编译代码出现以上错误提示
vscode编译代码出现以上错误提示

检查你的vscode的配置,对话框里所示的路径是否存在

不知道你这个问题是否已经解决, 如果还没有解决的话:
  • 帮你找了个相似的问题, 你可以看下: https://ask.csdn.net/questions/7655450
  • 这篇博客你也可以参考下:使用vscode搭建轻量美观的C/C++开发环境以及解决中文乱码问题
  • 除此之外, 这篇博客: 初用VScode并配置,自定义代码片段(快捷键),自动格式化代码快捷键,保存格式化代码快捷键中的 三、用户自定义代码片段(快捷键) 部分也许能够解决你的问题, 你可以仔细阅读以下内容或者直接跳转源博客中阅读:

    第一步:文件==>首选项==>用户代码片段
    在这里插入图片描述
    第二步:选择代码片段文件 html.json
    在这里插入图片描述
    第三步:输入要自定义的快捷键 和 模板代码段

    {
    	// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and 
    	// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
    	// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
    	// same ids are connected.
    	// Example:
    	// "Print to console": {
    	// 	"prefix": "log",
    	// 	"body": [
    	// 		"console.log('$1');",
    	// 		"$2"
    	// 	],
    	// 	"description": "Log output to console"
    	// }
    
    
    	"vh": {
    		"prefix": "vh", // 触发的关键字 输入vh按下tab键
    		"body": [
    			"<!DOCTYPE html>",
    			"<html lang=\"en\">",
    			"<head>",
    			"    <meta charset=\"UTF-8\">",
    			"    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
    			"    <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">",
    			"    <title>Document</title>",
    			"    <script src=\"../vue/vue.js\"></script>",
    			"</head>",
    			"",
    			"<body>",
    			"    <div id=\"app\"></div>",
    			"    <script>",
    			"        var vm=new Vue({",
    			"           el:'#app',",
    			"           data:{",
    			"",
    			"			},",
    			"           methods:{",
    			"",
    			"			},",
    			"		});",
    			"    </script>",
    			"</body>",
    			"",
    			"</html>",
    		],
    		"description": "vh components"
    	}
    
    }
    

    第四步:进入 .html 后缀的文件中 按快捷键 vh 后按 tab 键 即可实现快速输入代码段
    在这里插入图片描述


如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^