microsoft / vscode-hexeditor

VS Code Hex Editor
https://marketplace.visualstudio.com/items?itemName=ms-vscode.hexeditor
MIT License
534 stars 89 forks source link

Feature Request : Show the values of all the selected bytes together instead of just the focussed byte in data inspecter #536

Open bangpradyumna opened 1 month ago

bangpradyumna commented 1 month ago

Hello,

The data inspector currently only shows value of the single focussed byte even if you've selected 5 continuous bytes (for example). This makes me open another browser window to do hex to bin/oct/decimal conversion of that 5 byte data which is very tedious.

It would be amazing if the data inspector shows the value of all the selected bytes taken together instead of just the focussed byte. If user wants to see value of just one byte, they can simply select that one byte.

Thanks!

Antecer commented 1 week ago

The data inspector displays 1 byte, 2 byte, 4 byte, 8 byte data starting from the cursor index. You can see here will show uint8, uint16, uint32, uint64.

This is a bit counterintuitive since one would normally think that it should only show selected data. This is a tradeoff because when many bytes are selected, the data inspector doesn't know how to display them.

If you have a good idea, show it!