github

octref / polacode

  • суббота, 17 февраля 2018 г. в 03:15:57
https://github.com/octref/polacode


📸 Polaroid for your code



Polacode

Polaroid for your code 📸.

MarketPlace Page

usage

By Pine & Peng from VS Code team. Happy Coding!

Why?

You have spent countless hours finding the perfect JavaScript grammar, matching it with a sleek-looking VS Code theme, trying out all the best programming fonts.

You take three days porting over your theme before starting to use VS Code. You shell out $200 for italic cursive html attributes.

The code has to look right.

Seriously, why not just take a screenshot?

  • I like and care about the shadow, padding & rounded corner of macOS's screenshot. I want it to be available for my code snippet too. You can't select a part of your code and easily get all these nice visuals with macOS's Grab tool.
  • I want to hide errors, warnings, color decorators, folding markers, line numbers, scrollbar and minimap.
  • It generates something decent on Windows & Linux.

Demo

Nord + Input Mono

demo1

Monokai Pro + Operator Mono

demo2

Material Theme Palenight + Fira Code

demo3

Tip

  • If you have the Vim extension, remove its keybinding for copying. Otherwise VS Code won't copy code with syntax highlighting. Alternatively you can run the command Copy with Syntax Highlighting.
  • When running out of horizontal space, try the command View: Toggle Editor Group Vertical/Horizontal Layout.

Credit

Thanks to @tsayen for making dom-to-image, which Polacode is using for generating the images.

Thanks to Dawn Labs for making Carbon that inspired Polacode.

Download button animation is made with Vivus.

License

MIT