首页 > 其他分享 >配置代码片段问题 Invalid characters in string. Control characters must be escaped.

配置代码片段问题 Invalid characters in string. Control characters must be escaped.

时间:2022-12-29 15:47:58浏览次数:37  
标签:Control Vue 代码 Invalid escaped v1 characters

在使用代码片段时报错 Invalid characters in string. Control characters must be escaped.

" somethings", // space in font of ' somethings ' should : Spacebar instead Tabs

报错代码

"v1": {
		"scope": "javascript,typescript",
		"prefix": "v1",
		"body": [
			"Vue.config.productionTip = false;",
			"new Vue({",
			"	el:'#root',",
			"	data:{",
			"		name:'百度',",
			"	}",
			"})",
		],
		"description": "初始化vue"
	}

解决代码

"v1": {
		"scope": "javascript,typescript",
		"prefix": "v1",
		"body": [
			"Vue.config.productionTip = false;",
			"new Vue({",
			" el:'#root',",
			" data:{",
			" name:'百度',",
			" }",
			"})",
		],
		"description": "初始化vue"
	}

标签:Control,Vue,代码,Invalid,escaped,v1,characters
From: https://www.cnblogs.com/nuomibaibai/p/17012676.html

相关文章