-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paste a file with existing file name in vscode cause them to rename instead of replace existing file #127746
Comments
(Experimental duplicate detection) |
I believe this was always behaving like this. If you think this was behaving differently before can you please provide the vscode stable version when it was offering to replace. |
That is when you drag and drop from outside of vscode... |
I see, can we have that inside the vscode? it's very hard to sync two folders atm with vscode. since it's already a existing feature, should be easy to choose the behavior by some setting |
This is a fair request to have that a bit more unified. However nothing we have plans to change -> backlog. |
this is a very minimal task to bring a more predictable result to the vscode. please reconsider as it helps alot when moving files from one project to another project |
Yes i agree with @mhamri |
me too |
@chandu-007 @JC-LGMS please like the original thread, if we reach 10 like probably we can reopen it |
please consider it |
C'mon man.. You expect us to paste it and manually delete the existing file & rename the pasted file again? At least you should have a setting to choose what to do when pasting the file with same filename. |
And what's the reason for having replace at that scenario alone? Don't you think it will be useful if we do the same in vscode itself? |
@isidorn this feature request has 10 likes, could we reopen it? |
I also want to overwrite the confirmation instead of creating a new file. |
Recently, face this problem too. Please consider to reopen this. |
Reopen this issue please. I believe this feature is helpful and very intuitive to how users use the software |
I agree, on any conflict, there should be a popup with overwrite and rename options. The current method of simply pasting a renamed copy is inferior to basically any other IDE. Someone recommended to just open the explorer and copy-paste files. But it's not so easy. For example, in vscode, I can see which files have changes, so I may want to copy-paste only those files. |
look like it is resolved with the latest vscode |
Hi, why does it throw this warning though? |
@okorieebube it's a value just added in vscode 1.72.0. please see if your vscode is updated to the latest or not |
so I tested it and if you paste a file that another file with the same name exists in the folder it will take one of these action based on your setting simple -> add -copy to end of the file name |
It works now, Thanks Mhamri. |
Yes I have tested it is working now.
…On Sat, 8 Oct, 2022, 9:49 pm KelvinIOT, ***@***.***> wrote:
so I tested it and if you paste a file that another file with the same
name exists in the folder it will take one of these action based on your
setting
simple -> add -copy to end of the file name smart -> file name get an
incremental number disabled -> ask to replace the file
It works now, Thanks Mhamri.
—
Reply to this email directly, view it on GitHub
<#127746 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDRTMJDMTHPO3QQNP5CIQ3WCGNKDANCNFSM47T65PXQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Well, it seems to me there is no way to paste a file, for example, in same directory - it always shows replace|cancel dialog, but it's kinda obviously to provide rename|replace|cancel choice instead |
@isidorn |
Please reopen this issue |
I am not sure what happened to the replace file dialog, but it's not working when I copy a file from inside the the vscode.
I tried to find a config but google is not giving any good result back. I also asked the question in SO but no one answered it.
when I copy a file to a folder that a file with the same name exist, the new file get renamed instead of showing the replace dialog box.
for example, if I copy a file
abc.jpg
from one folder into another folder thatabc.jpg
exist. i will end up with two files that the old one isabc.jpg
and new one isabc copy.jpg
it's new feature and wasn't like this before. previousley, if I paste a file into its origin folder it get renamed, but when I copy into another folder, it asked for replacement, but now it's just renaming, even if the source and destination folder is different.
Unfortunately, I can't find any configuration to change it, also keywords such as "copy", "file", "replace" is too generic that I can't find a solution for this problem by just googling it.
The text was updated successfully, but these errors were encountered: