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で削除したファイルを復元する方法

Posted at

はじめに

今回は、VSCodeを用いた開発の中で間違えて削除してしまったファイルを復元する方法を調べてまとめました。

1. 削除したファイルと同じ名前で、同じ場所に新しいファイルを作成

削除したファイルと同じ名前で、同じ場所に新しいファイルを作成します。
例)config/gakken.phpを削除した場合、新たにconfig/gakken.phpを作成

2. 新しく作成したファイルのタイムラインを確認

新しく作成したファイルをVScodeの左側の「エクスプローラー」エリアで右クリックし、「タイムラインを開く」をクリックする。
「エクスプローラー」エリアの下部にタイムラインが表示されるので一番上の項目を右クリックし、「コンテンツの復元」をクリックする。

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?