Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I see a bin file in a hex editor in Visual Studio Code?

I have a bin file holding all my instruction cache and data cache for my Verilog project, and I want to see it as the Notepad++ hex editor shows its meaning, hex representation view. Is there a way to configure this?

Or maybe an extension that provides this functionality?

like image 519
bubismark Avatar asked Aug 11 '16 20:08

bubismark


People also ask

Does VS Code have a hex editor?

A custom editor extension for Visual Studio Code which provides a hex editor for viewing and manipulating files in their raw hexadecimal representation.


2 Answers

  1. Install this extension: Hexdump for VSCode. It can display a specified file in hexadecimal.

  2. Open the file/image/whatever you want to display in hex mode in Visual Studio Code, then press Ctrl + Shift + Alt + H. That's it.

  3. Or press Ctrl + P then input Show hexdump from path to open a file in hex mode directly.

like image 57
Kouga Avatar answered Sep 26 '22 19:09

Kouga


VSCode 1.46 (May 2020) will have its own native Hex Editor extension:

Hex Editor

With the custom editor API finalized with support for binary editors, we have developed a hex editor extension to provide a native hex editing experience.

https://media.githubusercontent.com/media/microsoft/vscode-docs/vnext/release-notes/images/1_46/hex-editor.gif

like image 38
VonC Avatar answered Sep 23 '22 19:09

VonC