You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ability to increment prefix when duplicating file/folder #47014
Currently VSCode increments suffix when copying a file. Copying file.1.ext makes file.2.ext. But there are cases when the version is specified in prefix not suffix, for instance when dealing with migrations we have files like 001-name.ext, copying this results in creating a file named 001-name.1.ext which is not the desired result.
It would be great if VSCode could detect and increment the prefix if needed. It also requires minimal changes to incrementFileName method to add the functionality.
Activity
iCyberon commentedon Mar 30, 2018
Testing something like
/^(\d+)(.*)(\..*)$/should be enough to handle the case.isidorn commentedon Apr 13, 2018
If there is a simple PR to handle this case we would be happy to merge it in
iCyberon commentedon Apr 13, 2018
Great, I'll make the changes and create PR
roblourens commentedon May 30, 2018
This caused #50822 which we should take for May