Reputation: 463
I would like to write a simple extension for Visual Studio Code to allow basic drag and drop copy/paste functionality but I can't find any way to be notified of mouse events. Have I overlooked something obvious or has the editor intentionally been designed to be keyboard only (well mostly)?
Note: I am referring to the TypeScript based Visual Studio Code editor not the full-blown Visual Studio.
EDIT: I should have phrased the question differently because there is indeed drag and drop copy/paste now, but it's still not clear to me how to handle mouse events in an extension.
Upvotes: 30
Views: 2456
Reputation: 9387
No.
There are currently (2021) no API features that allow for hooking into drag and drop mouse events.
In general, if you want to let an extension hook into things happening in VS Code you can do so by subscribing to certain events (search for "events" on that page).
Upvotes: 1