You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VSCode 1.19.1(macOS)如何在文件资源管理器中复制目录与文件?

One-Step Duplicate + Rename in VS Code 1.19.1 (macOS)

Hey there! I totally get wanting that seamless right-click "Duplicate and Rename" workflow—it’s such a handy time-saver for quick file/folder copies. Unfortunately, VS Code 1.19.1 (and even most newer stable versions) doesn’t include this as a built-in one-step action, so you didn’t miss anything! Here are a few workarounds to get close to that ideal workflow:

  • Built-in two-step method (no extensions needed)
    Right-click your target file/folder, select Copy, then right-click the same parent folder and select Paste. As soon as you paste, the new file/folder will automatically enter rename mode—just type your desired name and hit Enter. It’s two clicks instead of one, but it’s almost as fast once you get the hang of it.

  • Keyboard shortcut hack
    Speed things up even more with shortcuts: use Cmd+C to copy the item, Cmd+V to paste it, then immediately press Enter to activate rename mode. This cuts out all right-click navigation entirely.

  • Use an extension for true one-step action
    If you really want that single right-click option, head to the VS Code Extensions Marketplace and search for plugins like Duplicate File or File Utils. These add a dedicated "Duplicate" option to your right-click menu that prompts you to enter a new name immediately after selecting it—exactly the workflow you’re looking for. Just install the extension, right-click your item, pick the new "Duplicate" option, and type your new name in the input box that pops up.

内容的提问来源于stack exchange,提问作者solr

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 06:45:27