mgiesen / Image-Comments

The Image Comments Visual Studio Code extension lets you easily add visual comments such as sketches or diagrams directly into your source code, improving code documentation and understanding.
https://marketplace.visualstudio.com/items?itemName=mgiesen.image-comments
MIT License
9 stars 4 forks source link

Image Comments for Visual Studio Code

Visual Studio Marketplace Version Visual Studio Marketplace Downloads

Description

The Image Comments extension for Visual Studio Code allows you to add images, such as sketches or diagrams, directly into your source code. This helps to improve documentation and understanding, especially for complex algorithms. By visualizing code concepts, it makes them easier to comprehend and track over time.

Image

Features

Requirements

Usage

JavaScript Example

// Image in the same folder [image.png]

// Image in a subfolder [images/image.png]

// Image in a parent folder [../image.png]

/*
   You can also use multi-line comments [../image.png]
*/

Installation

  1. Open Visual Studio Code
  2. Go to Extensions Marketplace
  3. Search for "Image Comments"
  4. Click the "Install" button

Or just install the extension from marketplace.

Supported File Types

Limitations

Due to the limitations of Visual Studio Code, it is not possible to display images directly in the code. Therefore, this extension uses the solution of visualization via tooltips. The usage and styling of tooltips are also severely restricted. We do our best to always utilize all possibilities provided by Microsoft.

Reporting Issues

If you encounter any problems or have suggestions, please open an issue on our GitHub repository.

Contributing to This Project

We encourage contributions to this project and welcome collaborators who are interested in enhancing its functionality and features. Instead of forking and creating redundant versions, please consider submitting pull requests with your improvements. By working together, we can maintain a single, robust version of the project and ensure that all users benefit from the collective effort. Your contributions are highly valued and can make a significant impact on the project’s success. Thank you for supporting the open-source community!

Author

Maximilian Giesen
https://github.com/mgiesen