In VS Code, dragging and dropping a file into the explorer automatically opens it in the editor as well.
If you don’t like this behavior, there’s a new setting that lets you turn it off.
Let’s check it out!
🎥 Prefer a video instead? Check this out:
How-to
Open the Settings panel by using CTRL
+ ,
(comma) and disable the Explorer: Auto Open Dropped File setting.
Settings.json
You can also use this setting from the settings.json
file.
"explorer.autoOpenDroppedFile": false,
Happy coding 💜
Let me know what you think about this article in the comments section below.
If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.