If you like the "Binary File Viewer" please consider supporting it.
![](assets/button_donate_sp.png)
![](assets/button_donate_pp.png)
In vscode's command palette run: 'Binary File Viewer: Show Help'. That will open a help page explaining the concept and the available API.
There exists also a basic walkthrough. You can open it from the command palette via: 'Get Started: Open Walkthrough...' -> 'Binary File Viewer'.
The 'Binary File Viewer' is a framework that allows you to build your own custom viewers for binary files. These files can be either existing file formats for which no vscode extension exists or also proprietary file formats. I.e. file formats that you build on your own and for which you would like to have a convenient way to look inside.
To tell the 'Binary File Viewer' what files to decode and how, you have to provide a javascript file.
Besides the display of numerical and binary values there is also support for graphic visualization with charts or a canvas.
Install through Visual Studio Code Marketplace. The extension is called "Binary File Viewer".
To understand how to build own parser scripts please refer to the Help.
To use it:
- In the vscode explorer right-click the binary file.
- Choose 'Open with Binary File Viewer'.
To use the 'Binary File Viewer' as default for some file extension:
- In the vscode explorer right-click the binary file.
- Choose 'Open With...'.
- If there is more than 1 viewer registered for the file type all viewers will show up, e.g.:
- Choose 'Configure default editor for ...'
- In the next window select the 'Binary File Viewer'.
- The next time you select a file of the same type it is immediately opened by the 'Binary File Viewer'.
This extension makes heavy use of the "chart.js", the "chartjs-plugin-zoom" and the "hammer.js" libraries.
Further used libraries are:
Many thanks to all the authors.