让 VSCode Intellisense 默认建议 "if block" 而不是 "if"
Letting VSCode Intellisense suggest "if block" instead of "if" by default
当我创建一个 if 块时,我输入 "if",然后 Intellisense 会先显示 if
但在 99% 的情况下我需要 if block。怎么让他推荐第一选择的方块,让我每次输入方块可以节省一秒?
// Controls whether snippets are shown with other suggestions and how
they are sorted.
// - top: Show snippet suggestions on top of other suggestions.
// - bottom: Show snippet suggestions below other suggestions.
//
- inline: Show snippets suggestions with other suggestions.
// - none: Do not show snippet suggestions.
"editor.snippetSuggestions": "top",
"inline"
是默认的,改成</code>。现在 <code>if
块片段将成为首选。
当我创建一个 if 块时,我输入 "if",然后 Intellisense 会先显示 if
但在 99% 的情况下我需要 if block。怎么让他推荐第一选择的方块,让我每次输入方块可以节省一秒?
// Controls whether snippets are shown with other suggestions and how they are sorted.
// - top: Show snippet suggestions on top of other suggestions.
// - bottom: Show snippet suggestions below other suggestions.
// - inline: Show snippets suggestions with other suggestions.
// - none: Do not show snippet suggestions.
"editor.snippetSuggestions": "top",
"inline"
是默认的,改成</code>。现在 <code>if
块片段将成为首选。