Files
vscode-extension-samples/drop-on-document/README.md
2022-09-27 09:32:30 -07:00

10 lines
501 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Document on Drop Sample
This sample shows usage of the [document on drop API](https://github.com/microsoft/vscode/issues/142990).
This sample adds two sample drop providers for plain text files:
- `ReverseTextOnDropProvider` This provider reverses any text dropped into a plain text editor.
- `FileNameListOnDropProvider` This provider inserts a numbered list of files names. It accepts dropped files from VS Code's explorer, VS Code's open editors view, or from the operating system.