2
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.

vscode-input-sequenceが壊れちゃって困ってる人は今すぐ設定を変えろ

Posted at

VSCodeで連番生成するのに欠かせない拡張機能が vscode-input-sequence
しかし、今年に入ったくらいからうまく動作しなっちゃった...が、設定変えたら治ったって話。

↓のissueで有志が解決方法を提示してた。

recently,it is repeated for each character entered #15

I encountered with the same issue. I found the reason is that vs code get an unexpected value for the variable replaceSelection in function function perform(initial, editor, options, undoStop) .
Forcing replaceSelection to be true, I get what I want.

↑のリンク先ではJSON設定が書かれてるけど、GUIから操作したほうが楽。
Sequence: Replace Selection にチェック入れるだけ↓。

image.png

これで治った❗

助かった。この拡張ないとマジで不便なんだよね。
というか、これを入れてない人ってどうやって作業してるの❓ってレベル。

適当なテストコード用に配列を10個ぐらい定義したいときあるじゃん❓
配列のインデックス(もしくは値)を0~9までチマチマタイプするのめんどくさい。めんどくさくない❓
この拡張を使えば一発で入力できる。
皆さん使おうね❗

2
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
2
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?