Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Screenshotting code from Visual Studio Code [closed]

Is there a way I can screenshot my code in visual studio code so that I can put that image onto a document or slideshow? I would just copy paste the code onto the doc but I need to be able to resize the images to fit multiple screenshots onto one page.

I have looked around but I haven't been able to find a way.

Something like this http://instaco.de without all the fancy effects and if possible directly inside vscode.

Thanks!

EDIT: Am on a Mac for reference.

like image 975
Alan Baumgartner Avatar asked May 05 '17 17:05

Alan Baumgartner


People also ask

How do you screenshot a code?

Select a code and press a hot-key (Ctrl+Alt+Shift+A by default) to copy it as the image (make a screenshot).

How do I reopen Visual Studio code?

Visual Studio Extension to reopen last closed document(s) with (CTRL + SHIFT + T) shortcut.

How do you unfold VS Code?

Unfold (Ctrl+Shift+]) unfolds the collapsed region at the cursor. Toggle Fold (Ctrl+K Ctrl+L) folds or unfolds the region at the cursor. Fold Recursively (Ctrl+K Ctrl+[) folds the innermost uncollapsed region at the cursor and all regions inside that region.


2 Answers

EDIT: At the moment there are several versions of Polacode, make sure to test some because there were incompatibilities due to VS Code Updates.

Several users had that need so this is exactly what Polacode is used for

It's a VS Code Extension. Can be found in the Extension Marketplace

It has an addional feature, it keeps the theme and fonts you're using in the editor.

Demo on Mac

like image 74
Ezequiel Castaño Avatar answered Sep 28 '22 02:09

Ezequiel Castaño


You can use the extension "Polacode" to print .png documents like the one attached 1.

Check in the market place and see if it suits to your requirements Polacode - Marketplace

like image 30
Thiago Fernandes Avatar answered Sep 28 '22 03:09

Thiago Fernandes