如何在 Visual Studio Code 的十六进制编辑器中查看 bin 文件?

问题描述:

我有一个 bin 文件,其中包含我的 Verilog 项目的所有指令缓存和数据缓存,我希望在 Notepad++ 十六进制编辑器显示其含义时看到它,十六进制表示视图.有没有办法配置这个?

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?

  1. 安装此扩展程序:VSCode 的 Hexdump.可以十六进制显示指定文件.

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

在 Visual Studio Code 中打开文件/图像/任何您想以十六进制模式显示的内容,然后按 Ctrl + Shift + Alt + H.就是这样.

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.

或者按Ctrl + P然后输入Show hexdump from path直接以十六进制模式打开文件.

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