I share a new Open Source extension for Visual Studio Code that allows us to generate colorful images of our code.
Nowadays, generating eye-catching images of our code is a common necessity. For example, it is useful to share them on social networks, or incorporate them into a project’s documentation.
There are also extensions for Visual Studio Code that allow us to perform the same procedure. Being able to generate the images directly from VSCode is much more convenient and faster.
Unfortunately, the development of CodeSnap is not active. At the time of writing this post, the last update was 17 months ago, it has 9 pending PRs, and 58 unclosed issues.
So I have created VSCodeSnap, which adds various improvements, such as:
- Background gradient
- Predefined palettes
- Line highlighting with three modes (|, + and -)
- More types of controls (None, Mac OS, Gray Dot, and Windows)
- Button bar with copy and save.
You can find VSCodeSnap in the Visual Studio Code extension palette, to install and update it comfortably.
Of course, VSCodeSnap is Open Source and all the code is available on Github, where you also have detailed instructions and more examples of VSCodeSnap.