vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

code runner fails in markdown previews

Open jandrieu opened this issue 6 years ago • 3 comments

Using VS Code 1.26.0, the code runner is unable to find code in the preview page of markdown files.

I can get it to execute code snippets from within the .md editor, but not from within the preview. The run command is not available in the context menu and if I use the command palette on selected text in the preview window, I get an error:

No code found or selected

Any help here?

jandrieu avatar Jul 20 '18 21:07 jandrieu

Currently, it is not supported yet. Make it as feature request

formulahendry avatar Aug 02 '18 05:08 formulahendry

How difficult is this feature to implement? It would be fantastic for presentations with small snippets of examples.

edongashi avatar Sep 21 '18 10:09 edongashi

I don't think think its hard to implement, I would love to jump on it though @formulahendry

How difficult is this feature to implement? It would be fantastic for presentations with small snippets of examples.

SpiffGreen avatar Sep 23 '23 23:09 SpiffGreen