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
Can I hex edit a file in Visual Studio?
提问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
- Menu File→ Open→ File
- Select the file to be opened
- On the open file dialog at the bottom there is a down arrow on the "Open" button
- Click "Open With..."
- Click "Binary Editor"
- Click OK
- 菜单文件→打开→文件
- 选择要打开的文件
- 在底部的打开文件对话框中,“打开”按钮上有一个向下箭头
- 单击“打开方式...”
- 单击“二进制编辑器”
- 点击 OK
Or for the keyboard geeks out there:
或者对于那里的键盘极客:
- Ctrl+ o
- Ctrl+ v(paste filename)
- tab
- tab
- ↓
- w
- b
- Enter
- Ctrl+ o
- Ctrl+ v(粘贴文件名)
- tab
- tab
- ↓
- w
- b
- 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组件。

