OneKitTools logoOneKitTools
返回开发者

代码转图片

Create beautiful code screenshots with syntax highlighting, themes, and window chrome — like Carbon but better

关于 代码转图片

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.

提示

  • Use 2x or 3x scale for crisp screenshots on Retina and high-DPI displays.
  • 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.21.4