0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VSコード上で方向キーショートカットを設定する

Posted at

やりたい事

VSコード上でもVim操作のようなカーソル移動をしたい。
出来る限り、方向キーは使いたくない。

そこで、VSコード上でキーボードショートカットを編集する事でVim風な操作が出来るようにしてみました。

手順

keybindings.jsonを開く

command + shift + pkeyと検索する

スクリーンショット 2021-04-28 0.11.16.png

ファイルに以下のコードを追記

keybindings.json
[
  { "key": "ctrl+l", "command": "cursorRight", "when": "textInputFocus" },
  { "key": "ctrl+h", "command": "cursorLeft", "when": "textInputFocus" },
  { "key": "ctrl+k", "command": "cursorUp", "when": "textInputFocus" },
  { "key": "ctrl+j", "command": "cursorDown", "when": "textInputFocus" }
]

まとめ

保存すれば、Vim風なカーソル操作が出来るはずです。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?