我的默认代码编辑器是 Vscode 但最近我在尝试为 Vue js 使用一些自定义(用户)代码片段时遇到了一些问题。我为我的项目编写了一些 Vuejs 自定义片段。虽然我在 Vue 实例中使用了一些属性,如 el、数据、方法等。我看到卷曲块区域自动变得模糊或被选中(我不知道它到底叫什么)。而模糊线只剩下Keyboards ESC键只能消除这种行为。这真的很烦人。在使用自定义用户片段时,如何在 Vscode 中停止这种行为?
这是我的片段:
" "Provide the Vue instance an existing DOM element to mount on (Vue.js snippet)": {
"prefix": "el",
"body": ["el: $1"],
"description": "Provide the Vue instance an existing DOM element to mount on (Vue.js snippet)"
},
"The data object for the Vue instance (Vue.js snippet)": {
"prefix": "data",
"body": ["data: $1"],
"description": "The data object for the Vue instance (Vue.js snippet)"
}
结果: