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

在使用代码片段时报错 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"
	}

posted on 2022-12-29 15:32  糯米白白  阅读(1329)  评论(0编辑  收藏  举报

导航