visual-studio 我可以在 Visual Studio 中对文件进行十六进制编辑吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1724586/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 11:12:57  来源:igfitidea点击:

Can I hex edit a file in Visual Studio?

visual-studioeditorbinaryfiles

提问by Kevin Driedger

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.

我想编辑一个二进制文件,但我不想使用 Visual Studio 以外的其他工具,因为来回切换很痛苦。

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

是否有可以在 Visual Studio 中执行此操作的加载项或某些内置功能?

回答by Kevin Driedger

  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
  1. 菜单文件打开文件
  2. 选择要打开的文件
  3. 在底部的打开文件对话框中,“打开”按钮上有一个向下箭头
  4. 单击“打开方式...”
  5. 单击“二进制编辑器”
  6. 点击 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
  1. Ctrl+ o
  2. Ctrl+ v(粘贴文件名)
  3. tab
  4. tab
  5. w
  6. b
  7. Enter

回答by jordanbtucker

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

除了Kevin 的回答之外,对于 Visual Studio 2017,您还需要安装Visual Studio C++ Core Features组件。

Source

来源