Drop into editor API finalised #96
isidorn
announced in
Announcements
Replies: 2 comments 2 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
2 replies
-
Do I understand correctly that it is not possible to use this with anything other than a plain, standard TextEditor? I.e., you cannot drag into a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The text editor drop API lets extensions handle dropping of files or other content into text editors. These drop events can come from within VS Code, such as dragging a file from VS Code's Explorer into a text editor, or can be generated by dropping a file from your operating system into VS Code.
To drop a file into an editor, users can hold down
Shift
while dragging and then drop the file to a specific location in the file. At this point, your extension can choose what to do with the dropped data.Check out the drop into editor extension sample for a simple example of this API in action.
Try out this API and let us know what you think about it. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions