LoginSignup
0
0

More than 3 years have passed since last update.

VS Codeで重複してる文字列を選択・変更する

Posted at

はじめに

これは学習用のメモになります。

今回はVSCodeで文字列が重複した際に同時に文字列を修正してきます。

方法

マルチカーソル選択機能を使って文字列を一括に変更していきます。

マルチカーソル選択機能とは「現在のカーソル位置にある単語と同じ単語をまとめて選択」できる機能です。

内容 コマンド
現在のカーソル位置にある単語と同じ単語を一括して選択する [Ctrl]+[Shift]+[L]キー(Windows/Linux) [Shift]+[Command]+[L]キー(macOS)
現在のカーソル位置にある単語と同じ単語を1つずつ選択範囲に追加する [Ctrl]+[D]キー(Windows/Linux)[Command]+[D]キー(macOS)
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