how to show c++ binary files in sublime text
Open Sublime Text and create a new C++ file or open an existing one.
Install the "HexViewer" package using Package Control:
- Press
Ctrl + Shift + P
(Windows/Linux) orCmd + Shift + P
(Mac) to open the command palette. - Type and select "Package Control: Install Package" and press
Enter
. Type and select "HexViewer" from the list, and press
Enter
to install.After the installation, open the binary file in Sublime Text:
- Select "View" from the menu.
Choose "Layout" and select "Rows: 2" to split the view vertically.
Open the hex view:
- Click on the second pane.
- Select "View" from the menu.
Choose "Syntax" and select "HexViewer."
Load the binary file in hex view:
- Select "File" from the menu.
- Choose "Open" and select the binary file you want to view.
Now, you should see the binary file in hex format in the second pane of Sublime Text. The HexViewer package helps you visualize the binary content of the file in a readable hexadecimal format.