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?

VScodeで行をまたいで縦に範囲選択したい時【矩形選択】

0
Posted at

矩形選択(くけいせんたく)

忙しい人向けに端的に

VScodeでAlt + shiht を押しながら範囲選択で行を越えて縦に選択できる。

あいうえお
あいうえお
あいうえお
あいうえお
あいうえお

例えば、上記の文字列の「う」のみを一括で変更したい場合、grepにて一括置換する方法もあるが、
この場合、矩形選択を用いれば縦に「う」のみを選択して置換したい文字列を入力すればいいだけなのでもっと楽に変更できる。

特にコードで唐突に大量に変更したい箇所があったとき、縦にそろっているならば矩形選択なら数秒もかからず変更でき、かなり良い。

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?