When I try to use the shortcut for moving lines up/down (Ctrl+Alt+Shift+↑/↓), it highlights the code and shows the tooltip message "Use Up/Down to move text line" but nothing happens. If however I try the same command via the menu bar (Resharper > Edit > Rearrange Code > Move Up) it moves the selected lines as expected.
我以前一直使用这个功能,所以我觉得这个错误很烦人。显然,其他人也经历过这种情况(请参阅评论Resharper 上下移动线不起作用 https://stackoverflow.com/questions/22673875/resharper-move-line-up-down-not-working)但我一直无法找到解决方案。重置键盘布局并重新应用 VS 键盘方案不起作用。
有人能够解决这个问题吗?
[EDIT]
出现此问题的原因(当您通过远程桌面使用 VS 和 Resharper 登录到计算机时)是 Ctrl-Alt-左箭头/Ctrl-Alt-右箭头组合不会发送到您的虚拟机
有两种解决方法:
我的第一个灵魂(更改组合见下文)
您可以使用 AutoHotKey 脚本,如线程中所述:https://superuser.com/questions/327866/remote-desktop-sending-ctrl-alt-left-arrow-ctrl-alt-right-arrow-to-the-remote-p https://superuser.com/questions/327866/remote-desktop-sending-ctrl-alt-left-arrow-ctrl-alt-right-arrow-to-the-remote-p
[/EDIT]
原因是相同热键的重复可以在“当前使用的快捷方式:”组合框中找到
Fix is
我描述了 _MoveRight 快捷方式的过程 - 对于其他快捷方式,它的工作原理相同
步骤 1 检查是否存在冲突的更改
seeImage https://i.stack.imgur.com/OXA62.jpg
STEP 2 现在我们需要删除这个快捷方式
步骤 3 现在我们需要将快捷方式添加到 _MoveRight 函数
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)