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.
Hovering the mouse over the info icon in the corner, shows a tootip with more details about the document.
When you select text, the margin will display the number of selected characters.
You can also make multiple selections like shown below using CTRL+ALT+Selection.
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.
The file encoding is shown in the margin as well and hovering it will show a tooltip with more details.
Clicking the encoding will open a drop down menu that lets you change the encoding of the file.
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.
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.