5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VS Code でスニペットをサジェストの一番上に表示させる方法

Posted at

Visual Studio Code の User Snippets で定義したスニペットをコード補完のサジェストの一番上に表示させるには、 User Settings で以下の設定を追加します。

settings.json
{
  "editor.snippetSuggestions": "top"
}
  • inline: スニペットを他の候補に混ぜて表示(デフォルト)
  • top: 他の候補より上
  • bottom: 他の候補より下
  • none: 表示しない

デフォルトだとせっかく自分で定義したスニペットがすぐに選択できず不便ですが、この設定を追加するとすぐ選択できるようになります。

参考: https://stackoverflow.com/questions/40110541/how-to-edit-existing-vs-code-snippets

5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?