Skip to content
OneKitTools logoOneKitTools
返回开发者

代码转图片

创建带语法高亮、主题和窗口外框的精美代码截图——类似 Carbon 但更出色

关于 代码转图片

Create beautiful code screenshots with syntax highlighting, themes, and window chrome — like Carbon but better, entirely 在浏览器中.

如何使用 代码转图片

  1. 1将你的code粘贴到editor中。
  2. 2选择一个 syntax theme and window style (macOS, Windows, or none).
  3. 3选择the font, font size, and enable/disable line numbers。
  4. 4自定义the background (gradient, solid color, or transparent), padding, and shadow。
  5. 5选择a social media preset for perfectly sized images (Twitter, LinkedIn, etc.)。
  6. 6Export at 1x, 2x, or 3x scale, 然后下载 or copy to clipboard.

提示

  • 在 Retina 和高 DPI 显示器上使用 2 倍或 3 倍缩放以获得清晰的截图。
  • Transparent 背景 + no window chrome creates clean code snippets for documentation.
  • Social media presets auto-size 图片 so your code posts look perfect without cropping.

相关工具

OneKitTools 团队更新于 2.25.0