2
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 1 year has passed since last update.

VisualStudio2022でキーボードショートカット変更(Ctrl + Wでタブウィンドウ閉じるように、など)

Last updated at Posted at 2022-09-12

やり方

ツール⇒オプション
image.png

環境⇒キーボード
image.png

今回は Ctrl + W を『タブウィンドウを閉じる』に割り当ててみます。

まず、 Ctrl + W既に割り当てられている設定を削除 する必要があります。
キーボードショートカットへの割り当ては複数設定できます。
なのでこの『使用しない割り当ての削除』をしておかないと、思ったとおりの動作にならない場合があります。

ショートカットキーのところで Ctrl + W
これで割り当てられている設定が確認できます。
下記の場合は『編集.キータイピング登録』に既に割り当てられている状態。
image.png

『以下の文字列を含むコマンドを表示』のことろで 編集.キー
『編集.キータイピング登録』を選択したら、削除。
image.png

割り当ての削除が全て済んだら、次は自分が割り当てたい設定に移ります。
削除の時と同じようにコマンドの検索。
目当てのコマンドを選択した『割り当て』ボタン⇒OK。
VisualStudioの再起動は不要。
image.png

この設定をすると、例えば下記のような状態で Ctrl + W 押すと、Form1.csのタブを閉じられます。
image.png

参考サイトさん

バージョン

Windows 10 Pro 21H2 OSビルド 19044.1889
Microsoft Visual Studio Community 2022 (64 ビット) - Current Version 17.3.0

2
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
2
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?