vscode撤销删除快捷键_在Windows资源管理器中使用键盘快捷键撤消意外移动或删除...

时间:2024-03-02 19:56:27
vscode撤销删除快捷键

vscode撤销删除快捷键

Have you ever accidentally deleted the wrong file, or duplicated files while trying to select them with the mouse? Those types of mistakes can be extremely frustrating, but there’s a really, really simple way to reverse them.

您是否曾经尝试用鼠标选择文件时意外删除了错误的文件或重复的文件? 这些类型的错误可能会非常令人沮丧,但是有一种非常非常简单的方法可以消除它们。

All you have to do is use the Ctrl+Z keyboard shortcut, or use Edit \ Undo on the menu.

您所要做的就是使用Ctrl + Z键盘快捷键,或使用菜单上的Edit \ Undo。

image

This is especially handy when you are trying to select a bunch of files, and accidentally move the mouse and copy them into the same folder instead:

当您尝试选择一堆文件并意外移动鼠标并将它们复制到同一文件夹时,这特别方便:

image

Once you do that, just immediately use the Ctrl+Z shortcut and the files will be removed, although you will get the regular delete confirmation dialog:

完成后,尽管会出现常规的删除确认对话框,但立即使用Ctrl + Z快捷键即可删除文件:

image

This can be confusing, but since the accidentally copied file is now going to be removed permanently, it makes sense that you’ll have to accept the deletion.

这可能会造成混淆,但是由于意外复制的文件现在将被永久删除,因此必须接受删除是有意义的。

Also note that this works in any version of Windows.

另请注意,此功能可在任何Windows版本中使用。

翻译自: https://www.howtogeek.com/howto/windows-vista/stupid-geek-tricks-undo-an-accidental-move-or-delete-with-a-keyboard-shortcut/

vscode撤销删除快捷键