whosydd / carbon

create and share beautiful images of your source code

Home Page:https://marketplace.visualstudio.com/items?itemName=whosydd.carbon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Carbon

Usage

Download PNG

默认会通过发送ajax请求获取图片,保存到项目根目录的carbon文件夹,然后通过默认程序打开图片

download-png

Open in carbon.now.sh

open-in-web

Configuration

Theme

// settings.json
"carbon.theme": "Dracula ProPurchase" // default

Domain

由于是通过ajax获取图片,domain 默认使用carbon-api.vercel.app,如果你想配置自己的 domain,可以参考 whosydd/carbon-api 使用 Vercel 部署,然后配置以下选项

// settings.json
"carbon.domain": "carbon-api.vercel.app" // default

Open image

下载图片后,是否打开图片

// settings.json
"carbon.openImg": true // default

Known Issues

由于我在 Vercel 使用的是 Hobby plan,所以每次请求时会有10秒timeout的限制,如果使用时出现无法下载的情况,请重新尝试。

Thanks

carbon-now-sh

petersolopov/carbonara

Icons made by Freepik from www.flaticon.com

About

create and share beautiful images of your source code

https://marketplace.visualstudio.com/items?itemName=whosydd.carbon

License:MIT License


Languages

Language:TypeScript 73.2%Language:JavaScript 26.8%