VSCode plugin that generate beautiful image for you code with your favorite font and theme
Powered by Solid.js
- Font: Maple Mono
- Theme: Maple
The popular existing extensions lack maintenance and have limited customization options. I spent some weekend time creating this extension, hoping to add a more modern UI and additional configuration options.
Call built-in command editor.action.clipboardCopyWithSyntaxHighlightingAction
and parse the clipboard content to HTML.
- Generate beautiful image
- Copy or save image in
PNG
/JPG
/WEBP
format - Click line number to highlight lines in 3 styles
- no effect about
editor.bracketPairColorization
- "pollute" your clipboard
The CodeImg extension allows you to customize various aspects of the code snippet's appearance and behavior. Here are the available settings:
The CSS background style for the snippet's container. Set it to "none"
if you do not want a background.
- Type:
string
- Default:
"linear-gradient(345deg, rgb(180, 218, 255) 0%, rgb(232, 209, 255) 100%)"
The CSS box-shadow style for the snippet's container. Set it to "none"
if you do not want a box-shadow.
- Type:
string
- Default:
"medium"
- Options:
"none"
,"small"
,"medium"
,"large"
The padding for the snippet's container.
- Type:
string
- Default:
"3rem"
Border for the snippet's container, which is only visible in the dark theme.
- Type:
boolean
- Default:
true
Whether to update the code snippet with debounce when selection changes.
- Type:
boolean
- Default:
true
The CSS rounded corners style for the snippet's container. Set it to "none"
if you do not want rounded corners.
- Type:
string
- Default:
"1rem"
The scale of the screenshot.
- Type:
integer
- Default:
2
The format of the screenshot.
- Type:
string
- Default:
"png"
- Options:
"jpg"
,"png"
,"webp"
Display OS X style window controls.
- Type:
boolean
- Default:
true
Add color to the window controls.
- Type:
boolean
- Default:
true
Display the window title with the open folder or file name.
- Type:
boolean
- Default:
true
Display line numbers in the code snippet.
- Type:
boolean
- Default:
true