Vscode: There is no confirmation window while drag-dropping project files in the "Explore" panel.

Created on 17 Dec 2015  路  15Comments  路  Source: microsoft/vscode

Without confirmation window on drag-dropping files in the Explore panel there is a chance to accidentally move project files to another directory.

feature-request file-explorer on-testplan

Most helpful comment

@bpasero IMO not asking for confirmation is what I expect. Normal OS explorers behave the same. However they allow me to undo such changes. So I would expect undo in VSCode as well.

All 15 comments

@bpasero IMO not asking for confirmation is what I expect. Normal OS explorers behave the same. However they allow me to undo such changes. So I would expect undo in VSCode as well.

:+1:

I'm not sure is its correct comparison, but for example in Jetbrains Webstorm when I drag-drop files there I see a confirmation window, which protects from accidentally moving some files from one directory to another. Otherwise, you can somehow drag files with your mouse and not even notice that.

I have had this problem many times and even had a plugin in Visual Studio .NET that did this for me: Here's a user-voice post for this same feature: https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/11312763-ask-before-moving-files-in-solution-explorer-tree

Hi @dbaeumer, I think could be (and perhaps _should be_) different features:

  • Showing a confirmation window (with _do not ask me anymore_ option maybe)
  • Undo changes in the Explore panel

Recently I had to look at "git status" and figure out which file I moved accidentally, and it's really a pain.

+1, I just did this and had a Visual Studio PTSD response.

Fyi for July (or insiders) https://github.com/Microsoft/vscode/issues/4842 is pushed and allows to disable DND in the explorer.

PR welcome.

Hi! I'd like to work on this. This is something that's annoyed me for a while now.

Its very annoying when a folder goes (i dont even know where and what) by accident. Especially when using touchpad.

The worst thing is when working on others directory and dont know the actual structure.

+1
there should be either a confirmation dialog or an undo functionality

+1

+1

Is there anything like cmd+Z for this?

+1. It's specially painful to move node_modules, or accidentally moving your mouse and not even having an idea of what has been moved to where.

I added a new setting "explorer.confirmDragAndDrop": true which is enabled by default and shows a confirm dialog that provides a checkbox to quickly change this setting to no longer show a confirmation:

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NikosEfthias picture NikosEfthias  路  3Comments

curtw picture curtw  路  3Comments

borekb picture borekb  路  3Comments

lukehoban picture lukehoban  路  3Comments

DovydasNavickas picture DovydasNavickas  路  3Comments