Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set VSCODE to increment file name when making a copy?

VSCode for mac Version 1.36.1, if that's relevant.

When I select a file and ⌘+C / ⌘+V, the new file name used to be incremented, for example file1.txt => file2.txt. But now somehow it changed. It will be file1.txt => file1 copy.txt.

I want to get the previous behavior back, or even better, to customize how the copied file should be renamed.

Please help.

like image 513
hxin Avatar asked Sep 20 '25 19:09

hxin


1 Answers

This was intentionally changed in VS Code 1.36.

In VS Code 1.38, a new setting "explorer.incrementalNaming": "smart" was added that reverts to the old incremental file naming behavior

like image 79
Matt Bierner Avatar answered Sep 23 '25 05:09

Matt Bierner