0
0

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 1 year has passed since last update.

関数引数のプレースホルダーで補完候補が最初から選択されるようにする

Last updated at Posted at 2023-06-07

2024/02/25追記

新しいバージョン(1.85.1)では最初の投稿の挙動を再現できないので,もはや役に立たないと思います.(当時の挙動も検証したいけど使っていたバージョンが分からない…)

周辺の仕様も頻繁に変化しているようなので,たまたまその影響を受けたのかもしれません.
以下調べてわかったことを貼るだけ貼っておきます.

"editor.suggest.snippetsPreventQuickSuggestions": falseは1.79からデフォルトの設定になった.
https://code.visualstudio.com/updates/v1_79#_quick-suggestions-and-snippets

補完候補が選択されない挙動は1.78までのものらしい.
https://github.com/microsoft/vscode/issues/185007

また,本来補完候補が選択されるかどうかは1.75で導入されたeditor.suggest.selectionModeを介して設定できる.
https://code.visualstudio.com/updates/v1_75#_suggest-selection-mode

最初の投稿

vscodeで関数/メソッドを補完すると,引数のプレースホルダー(タブストップ)にカーソルが移動しますが,そこで表示される補完候補は選択されておらず,などを入力する手間がありました.

以下のようにすると,候補の先頭が最初から選択された状態になります.

settings.json


{
  "editor.suggest.snippetsPreventQuickSuggestions": false
}
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?