Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CarbonNew to Visual Studio Code? Get it now.
Carbon

Carbon

whosydd

|
18,510 installs
| (4) | Free
Create and share beautiful images of your source code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft