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

CodeSnapShot

CodeSnapShot

|
863 installs
| (0) | Free
CodeSnapShot is a VSCode plugin that enables users to capture selected code snippets from their current document and convert them into image snapshots with just a few clicks.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

代码转图片 VSCode 插件

简介

这个 VSCode 插件可以将选中的代码转换为图片。你只需在编辑器中选中你想要转换的代码,然后通过右键菜单选择转换为图片,即可生成包含代码的图片。

安装

在 VSCode 中搜索并安装插件 CodeSnapshot,或者直接从 VSCode Marketplace 搜索并下载安装。

使用方法

  1. 在编辑器中选中你想要转换的代码。
  2. 右键单击选中的代码,在弹出的菜单中选择 "Convert to Image"。
  3. 选择图片风格(亮色或暗色)。
  4. 插件将自动将选中的代码转换为图片,并保存到系统的 Downloads 文件夹中。

注意事项

  • 确保选中的代码不为空。
  • 图片宽度和高度会根据选中的代码自动调整。
  • 图片将保存到系统的 Downloads 文件夹中,并使用当前时间作为文件名。

贡献

如果你发现了任何问题或有任何建议,请在 GitHub 上提交 issue 或 pull request。


Code Snapshot VSCode Plugin

Introduction

This VSCode plugin allows you to convert selected code snippets into images. Simply select the code in the editor, right-click, and choose "Convert to Image" from the context menu to generate an image containing the code.

Installation

Search and install the CodeSnapshot plugin in VSCode, or download and install directly from the VSCode Marketplace.

Usage

  1. Select the code you want to convert in the editor.
  2. Right-click the selected code and choose "Convert to Image" from the context menu.
  3. Select the style for the image (Light or Dark).
  4. The plugin will automatically convert the selected code into an image and save it to the system's Downloads folder.

Notes

  • Ensure that the selected code is not empty.
  • The image dimensions will adjust based on the selected code.
  • The image will be saved to the system's Downloads folder with the current timestamp as the file name.

Contribution

If you encounter any issues or have any suggestions, feel free to submit an issue or pull request on GitHub.


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