LoginSignup
16
15

More than 1 year has passed since last update.

VSCodeで複数ファイル内のテキストの一括置換する方法、等の忘備録

Last updated at Posted at 2019-08-09

環境

Windows 10, VSCode

手順

ケース1 : 複数ファイル内のテキストを一括置換する

  1. ctrl + shift + hを押す。(macOSはCommand + shift + h)
  2. 通常の一括置換と同様に、検索条件と置換後テキストを欄に入力する。
  3. "files to include"欄に"*"と入力するとすべてのファイルから検索できる。
  4. "Replace All"をクリックする。

ケース2 : 選択した範囲のテキストを一括置換する

  1. ctrl + hを押す。(macOSはCommand + h)
  2. 通常の一括置換と同様に、検索条件と置換後テキストを欄に入力する。
  3. 一括置換したい範囲のテキストをエディタ内で選択する。
  4. alt + l(エル)を押す。
  5. ctrl + alt + enterを押す。 (macOSはCommand + Alt + Enter)

以上、VSCodeの一括置換について、個人的によく使う手順のまとめでした。

16
15
4

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
16
15