Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to assign keyboard shortcut for arrow keys(i.e. ctrl + j for left arrow) in visual studio 2022

Recently, I am using VISUAL STUDIO 2022. While coding, I find it irritating to move my finger to the arrow keys to move the cursor. So, in vscode, I made some keybindings for moving the cursor left, right, up, and down.

But! in VISUAL STUDIO 2022 , I don't understand how to do that. I want these keyboard shortcuts in VISUAL STUDIO.

  • ctrl + j : move cursor left
  • ctrl + k : move cursor down
  • ctrl + l : move cursor right
  • ctrl + i : move cursor up

I tried to go to the keyboard options in VISUAL STUDIO 2022 but didn't find any options regarding this.

Thanks in advance for any recommendations.

like image 388
Tishat Avatar asked Oct 30 '25 07:10

Tishat


1 Answers

You should be able to do this by configuring keyboard shortcuts for the following commands: Edit.CharRight, Edit.CharLeft, Edit.LineUp, Edit.LineDown.

If you want to be able to extend the selection (e.g. Shift+Ctrl+L multiple times to select multiple characters), there are a separate set of commands with Extend appended to the name (Edit.CharRightExtend, etc).

like image 185
Jimmy Avatar answered Nov 02 '25 22:11

Jimmy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!