Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I hex edit a file in Visual Studio?

I want to edit a binary file, but I don't want to use another tool other than Visual Studio because it's a pain to switch back and forth.

Is there perhaps an add-in or some built in functionality that can do that in Visual Studio?

like image 764
Kevin Driedger Avatar asked Oct 16 '22 12:10

Kevin Driedger


People also ask

Can you edit a hex file?

Editing DataData can be edited in a hex editor just like a normal text editor. A hex editor has a cursor that can be moved by clicking with the mouse or using the cursor keys. Position the cursor over the byte you want to edit, and type the value you want to change to using the keyboard.

How do I edit a file in Visual Studio?

From the File menu on the menu bar, choose New > File, or select the Ctrl+N keys. In the New File dialog box, under the General category, choose Visual C# Class, and then choose Open. A new file opens in the editor with the skeleton of a C# class.


Video Answer


2 Answers

  1. Menu FileOpenFile
  2. Select the file to be opened
  3. On the open file dialog at the bottom there is a down arrow on the "Open" button
  4. Click "Open With..."
  5. Click "Binary Editor"
  6. Click OK

Or for the keyboard geeks out there:

  1. Ctrl + o
  2. Ctrl + v (paste filename)
  3. tab
  4. tab
  5. w
  6. b
  7. Enter
like image 301
Kevin Driedger Avatar answered Oct 19 '22 02:10

Kevin Driedger


In addition to Kevin's answer, with Visual Studio 2017 you need to have the Visual Studio C++ Core Features component installed.

Source

like image 12
jordanbtucker Avatar answered Oct 19 '22 03:10

jordanbtucker