Windows 7 Map CTRL + j to the Down Arrow Key

泪湿孤枕 提交于 2020-01-22 15:38:28

问题


I have been searching for months for a way to map a key combination (CTRL + something) to a directional key (like down or up).

I desperately want in Visual Studio to be able to press CTRL + j and have the cursor move down a line. I hate having to move my hands off of the home row to move up and down for things like intellisense or even just navigating up and down lines.

Does anyone have a solution for this? I would be ok with a Visual Studio-only solution, but something that works at the OS level would be ideal since this kind of navigation would be nice in any editor window and for instance SQL Server Management Studio also has intellisense.

I haven't considered any macro hotkey type solutions since they could conflict with in-app hotkeys (for instance if CTRL+j were assigned to something in Visual Studio already)


回答1:


I think the answer is nothing out there exists that would do this. I have done a lot of research.

I am now using Autohotkey instead of what would have been ideal. I have been familiar with this application for years and it does a pretty good job, but doesn't work across remote desktop for instance and so doesn't quite fill the need.

I mapped ctrl + i to do up, ctrl + k to be down, ctrl + j as left and ctrl + l for right.




回答2:


VS-only solution is simple.

At least in Visual Studio 2017 you can assign Ctrl+XXX key combinations to corresponding commands for Text Editor.

CharLeft
CharLeftExtend
CharRight
CharRightExtend
LineUp
LineUpExtend
LineDown
LineDownExtend
PageUp
PageUpExtend
PageDown
PageDownExtend
LineStart
LineStartExtend
Delete
DeleteBackwards
WordPrevious
WordPreviousExtend
WordNext
WordNextExtend

and so on.

All using standard Tools / Options / Environment / Keyboard settings dialog.



来源:https://stackoverflow.com/questions/10302221/windows-7-map-ctrl-j-to-the-down-arrow-key

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