SupportIf you like the "Hex Hover Converter," please consider supporting it.
Hex Hover Converter
The "Hex Hover Converter" displays numbers in their decimal, hexadecimal, and binary formats. Simply hover your mouse over a number to see the conversion. Conversions work in all directions: decimal to hexadecimal and binary, hexadecimal to decimal and binary, and so on. Version 2.0 introduces a more compact display and full customization of the output. Additionally, the content is now clickable, allowing you to easily replace the hovered number with the converted value. CustomizationsYou can customize the appearance of the hovers globally ("User") or per workspace. For each type of conversion (decimal to hex/binary, hex to decimal/binary, or binary to decimal/hex), you can define a different format string. If you don't want a particular conversion to appear (e.g., you don't want the binary conversion line), simply clear the line. For example, the default format string for hexadecimal conversion is:
The curly brackets {...} contain variables representing the hovered value as:
When hovering, the above line could expand to:
Please note that Additionally, two more variables exist:
The angle brackets <...> are used to make the enclosed text clickable. If you click the text, it will replace the hovered value, making it easy to swap the value with its converted form.
More ExamplesYou can customize the character used to separate different conversion strings with the Instead of:
For an even more compact display, you can e.g. remove the source values completely from the format strings:
Remarks
License and AcknowledgementsThis extension is based on https://github.com/thegtproject/vscode-hoverhex by Brandon/thegtproject and was originally a pull request. However, the original project appears to be abandoned. As it is MIT licensed, I decided to use the extension skeleton from the original project and enhance the simple hex conversion into a more advanced decimal-hex-binary conversion in all directions. This extension is also MIT licensed. |






