求助 VSCode 使用缺省源
  • 板块灌水区
  • 楼主CQ_JiJi
  • 当前回复6
  • 已保存回复6
  • 发布时间2023/10/23 18:40
  • 上次更新2023/11/2 11:41:56
查看原帖
求助 VSCode 使用缺省源
672793
CQ_JiJi楼主2023/10/23 18:40

rt.

VSCode 点开设置缺省源后是这样的:

{
	// Place your snippets for cpp 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": "#include",
		"body": [
			""
		],
		"description": "Log output to console"
	}
}

需要在 body 内用引号把需要加入的每一行都用引号括起来,可是如果缺省源中有含引号的代码就无法应用了,所以想请教有没有什么方法能解决,bdfs无果。

2023/10/23 18:40
加载中...