-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1139 from mjbvz/finalize-paste
Update to finalized api
- Loading branch information
Showing
3 changed files
with
13 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Document Paste Edit Sample | ||
|
||
This sample shows usage of the [document paste edit proposal](https://github.com/microsoft/vscode/issues/30066). | ||
This sample example shows how to use the document paste APIs. This api let's extension hook into VS Code's normal copy and paste operations in text documents. | ||
|
||
Requires VS Code 1.88+. | ||
With this API you can: | ||
|
||
- On copy, write data to the clipboard. This includes writing metadata that the can be picked up on paste. | ||
|
||
- On paste, generate a custom edit that applies the paste. This can change the content being pasted or make more complex workspace edits, such as creating new files. | ||
|
||
- Extensions can provide multiple ways that content can be pasted. Users can select how content should be pasted using the UI or with the `editor.pasteAs.preferences` setting. | ||
|
||
Requires VS Code 1.97+. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters