madskristensen / DocumentMargin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Editor Info extension for Visual Studio

Download this extension from the Visual Studio Marketplace or get the CI build.


Inspired by a popular Visual Studio feature request on Developer Community.

This extension adds information about the document to the bottom editor margin. It shows the selection, length, and language details, as well as the encoding of the of the file and let you easily change it.

Basic

Document info

Hovering the mouse over the info icon in the corner, shows a tootip with more details about the document.

Info

Selection

When you select text, the margin will display the number of selected characters.

Selection

You can also make multiple selections like shown below using CTRL+ALT+Selection.

Selected Text

That will display the total number of characters selected and the number of selection shown in parenthesis. Hovering over the margin will show a tooltip that breaks down the number of characters in each selection.

Multi Selection

Encoding

The file encoding is shown in the margin as well and hovering it will show a tooltip with more details.

Encoding

Clicking the encoding will open a drop down menu that lets you change the encoding of the file.

Encoding

The file is saved automatically with the newly selected encoding.

Please note that Visual Studio guesses the encoding of the file based on the content and that might not always be correct. When the file contains a BOM (byte order mark) it will always be detected correctly.

How can I help?

If you enjoy using the extension, please give it a ★★★★★ rating on the Visual Studio Marketplace.

Should you encounter bugs or if you have feature requests, head on over to the GitHub repo to open an issue if one doesn't already exist.

Pull requests are also very welcome, since I can't always get around to fixing all bugs myself. This is a personal passion project, so my time is limited.

Another way to help out is to sponsor me on GitHub.

About

License:Apache License 2.0


Languages

Language:C# 100.0%