Visual Studio with new image preview feature for developers

Visual Studio is becoming more visual. The development environment is getting a preview function that allows developers to see images directly in the code editor.

Based on numerous user requests and a community experiment, the Visual Studio team has developed a solution that fits seamlessly into the development environment. The new function enables developers to display image previews directly in the code editor. All they have to do is move the mouse pointer over a reference.

The preview function supports a variety of common image formats, including PNG, JPG and SVG. Other formats such as ICO, WebP and GIF are also taken into account. Of particular note is the planned support for SVG files, which is to be implemented in an upcoming version.

Flexible image referencing

A special focus is on supporting different methods for image referencing, which can vary depending on the programming language and application model. These include relative URLs, file paths, data URIs, pack URIs and image monikers.

In addition to the visual representation, the preview also provides useful metadata such as image size in pixels and file size in bytes. This allows developers to quickly estimate the resources used without additional tools.

Source: www.com-magazin.de