Resharper 和 ViEmu 键绑定(和视觉辅助)
使用 ViEmu,您确实需要取消绑定许多 resharper 按键绑定才能使其正常工作。
是否有人拥有他们认为在使用 ViEmu 时适合 resharper 的一套良好的按键绑定?
我目前正在使用 Resharper 的 Visual Studio 绑定进行操作。 使用 ViEmu 解决所有冲突的问题,然后通过菜单修改器(菜单项的 Alt-R 键盘快捷键)驱动其余的问题。 我也对 Visual Assist 快捷方式(针对 C++)做同样的事情,
如果有人有 ViEmu / Resharper 或 Visual Assist 协同工作的任何提示和技巧,我将非常感激!
With ViEmu you really need to unbind a lot of resharpers keybindings to make it work well.
Does anyone have what they think is a good set of keybindings that work well for resharper when using ViEmu?
What I'm doing at the moment using the Visual Studio bindings from Resharper. Toasting all the conflicting ones with ViEmu, and then just driving the rest through the menu modifiers ( Alt-R keyboard shortcut for the menu item ). I also do the same with Visual Assist shortcuts ( for C++ )
if anyones got any tips and tricks for ViEmu / Resharper or Visual Assist working together well I'd most apprciate it!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我也使用两者,但我使用的是 IntelliJ 键绑定,因此我无法具体讨论 Visual Studio 绑定。 JP Boodhoo 通过 AutoHotKey 进行了一些更改< /a> 为 Visual Studio + ReSharper + ViEmu 提供额外的类似 Vim 的功能。
不过,我删除了一些扫描的键,因为我想保留一些 ReSharper 功能而不是 ViEmu 功能,尽管随着我从 ViEmu 或 ReSharper 学到更多快捷方式,我使用这些工具的方式会随着时间的推移而改变。
I use both as well, but I'm using the IntelliJ keybindings instead, so I can't speak specifically to the Visual Studio bindings. J.P. Boodhoo has some changes that he has made via AutoHotKey to provide additional Vim-like functionality to Visual Studio + ReSharper + ViEmu.
I have removed a few of the scanned keys, though, because I want to keep some of the ReSharper functionality over the ViEmu functionality, though the way I use these tools change over time as I learn more shortcuts from either ViEmu or ReSharper.
您还可以在 ViEmu 中创建将调用 VS 和 R# 操作的映射。 例如,我的 _viemurc 文件中有以下几行用于注释和取消注释选择:
:vsc 表示“Visual Studio 命令”,然后输入该命令的确切文本,就像您执行命令时显示在命令列表中一样到 Tool>Options>Keyboard
我不以这种方式使用任何 R# 的,但它确实有效,如下所示:
You can also create mappings in ViEmu that will call the VS and R# actions. For example, I have these lines in my _viemurc file for commenting and uncommenting a selection:
The :vsc is for "visual studio command," and then you enter the exact text of the command, as it appears in the commands list when you go to Tool>Options>Keyboard
I don't use any of the R# ones in this way, but it does work, as with:
我注意到以下内容,了解这些可能会有用。 一旦打开不同的 ReSharper 对话框,ViEmu 软管的一些 ReSharper 键盘映射就会起作用。 我使用基于 IntelliJ IDEA 的快捷方式,但我认为这对于 ReSharper 的 VS 也同样有效方案。。
示例: ViEmu 绑定到 R# 用于
转到类型
的Ctrl+N
。 但是,ViEmu 不绑定到 R# 用于转到文件
的Ctrl+Shift+N
。 因此,如果您按Ctrl+Shift+N
将启动“转到”对话框。 然后,您可以将手指从 Shift 上移开并再次按 N,对话框将切换到转到类型
。如果您像我一样经常使用
Go To Type
并且不想弄乱键盘映射,那么这非常有用。I have noticed the following, which may be useful to know. Some of the ReSharper keyboard mappings that ViEmu hoses, will work once you have a different ReSharper dialog open. I use the IntelliJ IDEA-based shortcuts, but I assume this will work similarly for ReSharper's VS scheme.
Example: ViEmu binds to
Ctrl+N
which R# uses forGo To Type
. However, ViEmu does not bind toCtrl+Shift+N
which R# uses forGo To File
. Therefore, if you hitCtrl+Shift+N
the Go To dialog is launched. You can then take your finger off Shift and hit N again and the dialog will switch toGo To Type
.This is very useful, if like me you use
Go To Type
a lot and don't really want to mess with the keyboard mappings.我使用这两个插件,但我真的更喜欢 ViEmu 提供的 Vi 输入模型的强大功能。 我真的不太怀念 Resharper 按键绑定......
I use both plugins, but I really prefer the power of the Vi input model that ViEmu gives. I really don't miss so much the Resharper keybindings...
正如 @Jay 指出的,最好的方法是设置自定义绑定。
以下是 https://github.com/StanislawSwierc/Profile 处的绑定示例。 我根据之前的绑定创建了 https://github.com/w1ld/viemu_settings
As @Jay noted the best way is to set up custom bindings.
Here is example of bindings at https://github.com/StanislawSwierc/Profile. I created my bindings based on the previous at https://github.com/w1ld/viemu_settings