Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accidentally delete file in visual studio code with remote ssh and cannot ctrl+z in Explorer View

I used ubuntu and ssh by shh-remote extension to another ubuntu server, and I accidentally deleted a folder containing important files by pressing the delete key. I pressed "ctrl+z" but it did not restore. What did vsc actually do? How did I recover the deleted files (either by Visual Studio Code or by another way)?

update: I use testdisk to recover but it show "ok" quite low, and "failed" quite high? Many thanks.

like image 768
khoi vu Avatar asked Oct 24 '25 02:10

khoi vu


1 Answers

VS code actually fixed this and you can now un-delete a file while in an SSH remote session using CTRL + Z

If you're here cause you think you can't do give it a try!

like image 91
wumbl3 Avatar answered Oct 25 '25 17:10

wumbl3



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!