Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 528 Bytes

File metadata and controls

9 lines (5 loc) · 528 Bytes

Document on Drop Sample

This sample shows usage of the document on drop API. It requires VS Code 1.70+.

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.