tro*_*gne 3 code-snippets visual-studio-code
When trying to insert a snippet, be it custom or provided by vscode, I don't have enough info to choose from the suggestions.
For example, I have custom snippet for "template" :
"template js": {
"prefix": "template",
"body": ["<template>", " $0", "</template>"],
"description": "template js description"
}
Run Code Online (Sandbox Code Playgroud)
If I enter "templ" (for "template"), I will see 3 suggestions : my custum snippet, and 2 by vscode.
But next to each suggestions I see this :
Snippet 1 :
Provider: snippetCompletions
score: 48, compared 'template vue' with 'templ'
distance: 0, see localityBonus-setting
index: 17, based on sortText: "a-template vue"
Run Code Online (Sandbox Code Playgroud)
Snippet 2 :
Provider: snippetCompletions
score: 40, compared 'template, template' with 'templ'
distance: 0, see localityBonus-setting
index: 18, based on sortText: "z-template"
Run Code Online (Sandbox Code Playgroud)
Snippet 3 :
Provider: snippetCompletions
score: 48, compared 'template, template' with 'templ'
distance: 0, see localityBonus-setting
index: 19, based on sortText: "z-template"
Run Code Online (Sandbox Code Playgroud)
How can I know which one to choose ? It would help if I could see the snippet's body or description next to the suggestion.
该provider: ... score: ...信息表明您处于 VS Code 的IntelliSense 解释模式。此模式仅在开发提供建议的扩展时有用,不应正常使用,因为它隐藏了重要信息,包括代码段内容。
要退出解释模式,只需打开一些建议并触发toggleExplainMode命令(cmd/是MacOS 上的默认键绑定)
还要确保展开完成详细信息(单击(i)右侧的小):
| 归档时间: |
|
| 查看次数: |
197 次 |
| 最近记录: |