【问题标题】:How to overwrite files in VS Code on copy-paste (and not get a *.1* appended to the filename)?如何在复制粘贴时覆盖 VS Code 中的文件(而不是将 *.1* 附加到文件名)?
【发布时间】:2019-06-22 13:38:22
【问题描述】:

每当我将 VS Code 的项目窗格中的文件从一个文件夹复制粘贴到另一个具有同名现有文件的文件夹时,它会不断在文件名中附加 .1

(例如:bob.jpg -> bob.1.jpg)。

有没有办法禁用它并让它覆盖文件(或至少提示确认覆盖)?

项目文件夹示例:

[folder] images_1
        bob.jpg   //copy this
[folder] images_2
        bob.jpg   //to replace this one here...

目前,我不得不通过 Windows 资源管理器 执行此操作,但如果有办法,我肯定会喜欢答案! :)

【问题讨论】:

  • 有人找到答案了吗?

标签: visual-studio-code copy-paste overwrite


【解决方案1】:

这有点麻烦,但我删除了要替换的文件,然后粘贴新文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-09-07
    • 1970-01-01
    • 2011-11-08
    • 2013-11-10
    • 2018-08-23
    • 2013-02-09
    • 2016-01-31
    相关资源
    最近更新 更多