microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.88k stars 29.16k forks source link

Add Copy Cell Output button or context menu in .NET Interactive #124917

Open doggy8088 opened 3 years ago

doggy8088 commented 3 years ago

Due to this reply from https://github.com/dotnet/interactive/issues/862 issue. I just realized that this suggestion have to report to vscode repo. I would like to suggest two options for the .NET Interactive extension:

  1. Add a Copy Cell Outputs button in the context menu when right-click on the cell output

    image

  2. Add a Copy button on the top-right corner just like GitHub's code fence did.

    image

DonJayamanne commented 3 years ago

I vote for the ability to have some sort of a concept of commands in Output items. This way we can have commands to:

I have a personal extension that opens vega & plotly plots in an editor (not just a viewer).

E.g. expose the mime type as a context key (so extension authors can have commands show up for some mime types & not others).

@rebornix /cc