vscode-copy-syntax
vscode-copy-syntax copied to clipboard
copy your code with syntax highlight to clipboard, can be used at your slide.
copy-syntax
copy your code with syntax highlight, can be used at your slide.
Now with vscode 1.10 it supports copy syntax without extra plugin. https://code.visualstudio.com/updates/v1_10#_copy-with-syntax-highlighting But it's copy as HTML format, maybe not work with keynote. This Plugin copy as RTF format to make keynote happy.

Features
- Copy code as RTF
- Auto detect language:
markdown syntax->vscode languageId->file extension - Support language to highlight
- Use pygmentize and copy-paste
Known issues: Can't work in windows until
copy-pastesupport this feature
Usages

- Open code file or select code snippet in Text Editor, then press
F1and then select/typeCopy Syntax, or right click the Text Editor and then clickCopy Syntaxin context menu, the code with syntax highlight will copy to clipboard. - To select language to run, use press
F1and then select/typeCopy Syntax as ..., then type the language: e.gphp, js, bash...
Installation
- Press
F1in VSCode, typeext installand then look forcopy-syntax. pythonis required bypygmentize
Configuration
-
copy-syntax.defaults.lang: the default language isjs -
copy-syntax.defaults.format: currently is only supportrtf, feel free to PR. -
copy-syntax.showMessage: set tofalseto skip boring success message -
copy-syntax.formatters.rtf: RtfFormatter optionsfonsizeis specified in half points. The default is 24 half-points, giving a size 12 font.- see http://pygments.org/docs/formatters/#RtfFormatter
{ "copy-syntax.defaults.lang": "js", "copy-syntax.showMessage": false, "copy-syntax.formatters.rtf": { "style": "default", "fontsize": 24, "fontface": "Monaco" } }
Issues
Submit the issues if you find any bug or have any suggestion.
Contribution
Fork the repository and submit pull requests.
Release Notes
see CHANGELOG