bubismark
bubismark

Reputation: 1019

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?

Upvotes: 86

Views: 158472

Answers (4)

Kouga
Kouga

Reputation: 714

  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.

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

Upvotes: 58

Ranch Camal
Ranch Camal

Reputation: 570

  1. Install Hex Editor
  2. Then open the file you want to edit in VS Code
  3. It will say you cannot open the file in here (if it's binary file), Select Open Anyway enter image description here
  4. Select Hex Editor from the Command Panel enter image description here
  5. You should see something similar to this: enter image description here

Upvotes: 4

Ahmad Bader
Ahmad Bader

Reputation: 337

Hexdump has been deprecated. The alternative right now is Hex Editor by Microsoft.

Hex Editor OR ext install ms-vscode.hexeditor

Upvotes: 10

VonC
VonC

Reputation: 1324887

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

Upvotes: 74

Related Questions