VSCode 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: useCmd+Cto copy the item,Cmd+Vto paste it, then immediately pressEnterto 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

