Visual Studio按键绑定配置文件 [英] Visual Studio key bindings configuration file
问题描述
是否存在Visual Studio用于其键绑定的任何可编辑的配置文件? 选项"->环境"->键盘"对话框是如此完全被破坏(或至少过于繁琐而无法使用),并且自Visual C ++ 5起,我真的只想转到配置文件,Visual Studio会将键绑定保存到和直接进行编辑.
Is there any human-editable configuration file that Visual Studio uses for its key bindings? The Options->Environment->Keyboard dialog is so completely broken (or at least much too tedious to use) and has been since Visual C++ 5 that I really just want to go to the configuration file the Visual Studio is saving the keybindings to and edit that directly.
想法?
推荐答案
不是最理想的格式,但是您的个人资料中有currentsettings.vssettings文件.有一个部分看起来像这样
Not the most ideal format, but there is the currentsettings.vssettings file located in your profile. There is a section that looks something like this
<UserShortcuts>
<RemoveShortcut Command="Edit.LineOpenAbove" Scope="Text Editor">Ctrl+Enter</RemoveShortcut>
...
<Shortcut Command="Refactor.Rename" Scope="Text Editor">F2</Shortcut>
...
</UserShortcuts>
一旦您列出了所有可能感兴趣的命令,那么在文件中编辑默认键盘设置就应该很容易了.在工具"菜单下,是一个用于从vssettings文件导入/导出设置的选项.
Once you have a list of all the commands your might be interested in, it should be fairly easy to edit your default keyboard settings in the file. Under the Tools menu is an option to import/export settings from a vssettings file.
这篇关于Visual Studio按键绑定配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!