11
3

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.

VScodeでDockerのコンテナから抜ける設定

Last updated at Posted at 2020-11-12

はじめに

デバッグするときにDockerにattachした際、デタッチ(コンテナから抜ける)するときに
Ctrl+PCtrl + Qを使うと思います。

しかし、VScodeではすでにこれらのショートカットキーが登録されていてそちらが優先されてしまいます。
VScodemでデタッチできるように、VScodeのショートカットキーが効かないように設定を変更してみました。

設定

ショートカットを確認するとctrl+Pctrl+Qがすでに登録されていることが確認できます。
スクリーンショット 2020-11-12 16.02.01.png

VScodeのkeybindings.jsonに下記を記載します。(command+Pでファイル検索を開き、>keybindings.jsonと打つと開きます!)

すでに設定されているcommandに-をつけることでctrl+Pctrl+Qのショートカットキーを削除できます。

keybindings.json
{
    "key": "ctrl+P",
    "command": "-workbench.action.quickOpenSelectPrevious"
  },
  {
    "key": "ctrl+Q",
    "command": "-workbench.action.quickOpenView"
  }
11
3
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
11
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?