Visual Studio key bindings configuration file

半城伤御伤魂 提交于 2020-02-01 06:22:49

问题


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.

Ideas?


回答1:


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>

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.



来源:https://stackoverflow.com/questions/13503447/visual-studio-key-bindings-configuration-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!