how to show c++ binary files in sublime text

  1. Open Sublime Text and create a new C++ file or open an existing one.

  2. Install the "HexViewer" package using Package Control:

  3. Press Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (Mac) to open the command palette.
  4. Type and select "Package Control: Install Package" and press Enter.
  5. Type and select "HexViewer" from the list, and press Enter to install.

  6. After the installation, open the binary file in Sublime Text:

  7. Select "View" from the menu.
  8. Choose "Layout" and select "Rows: 2" to split the view vertically.

  9. Open the hex view:

  10. Click on the second pane.
  11. Select "View" from the menu.
  12. Choose "Syntax" and select "HexViewer."

  13. Load the binary file in hex view:

  14. Select "File" from the menu.
  15. 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.