[RAILS] Setting to exit from Docker container with VScode

Introduction

When attaching to Docker when debugging, when detaching (exiting the container) I think you should use Ctrl + P Ctrl + Q.

However, in VScode, these shortcut keys are already registered and they will be given priority. I changed the setting so that the shortcut key of VScode does not work so that it can be detached with VScodem.

Configuration

If you check the shortcut, you can see that ctrl + P and ctrl + Q are already registered. スクリーンショット 2020-11-12 16.02.01.png

Describe the following in keybindings.json of VScode. (Open the file search with command + P and type> keybindings.json to open it!)

You can delete the shortcut keys of ctrl + P and ctrl + Q by adding - to the command that has already been set.

keybindings.json


{
    "key": "ctrl+P",
    "command": "-workbench.action.quickOpenSelectPrevious"
  },
  {
    "key": "ctrl+Q",
    "command": "-workbench.action.quickOpenView"
  }

Recommended Posts

Setting to exit from Docker container with VScode
Ssh connect from container to git with VSCode Remote Container
Update MySQL from 5.7 to 8.0 with Docker
Introduced vscode with apt to docker: ubuntu
[Docker] Copy files from docker container to host
How to get a heapdump from a Docker container
Copy files from docker container to host (docker cp)
I wanted to develop PHP with vscode remote container
Push Docker images from GitHub Actions to GitHub Container Registry
Migrating from vargrant to docker
Let's write how to make API with SpringBoot + Docker from 0
Wait for the container service to start with docker healthcheck
[Docker context] ~ How to access docker in remote environment from VScode ~
[Docker] How to access the host from inside the container. http://host.docker.internal:
Introduction to Linux Container / Docker (Part 1)
Build PlantUML environment with VSCode + Docker
Introduction to Linux Container / Docker (Part 2)
Pass environment variables to docker container
[Docker] Operation up to container creation # 2
[Linux] Start Apache container with Docker
How to start Camunda with Docker
Build WebRTC Janus with Docker container
Ruby on Rails development environment construction with Docker + VSCode (Remote Container)
PostgreSQL environment construction with Docker (from setup to just before development)
Minimal Workflow to push Docker image to Github Container Registry with Github Actions
How to share files with Docker Toolbox
Docker push to GitHub Container Registry (ghcr.io)
How to compile Java with VsCode & Ant
Investigate the replacement from Docker to Podman.
How to develop from VScode in a remote destination environment or a remote destination container environment
[Rails] How to use rails console with docker
Deploy to heroku with Docker (Rails 6, MySQL)
Create a MySQL environment with Docker from 0-> 1
How to use Docker in VSCode DevContainer
Docker container build fails to install php-radis
Introduction to Docker / Kubernetes Practical Container Development
Japanese setting of mysql in Docker container
How to run Blazor (C #) with Docker
How to start a Docker container with a volume mounted in a batch file
How to build Rails 6 environment with Docker
Error response from daemon: conflict: Conflict when trying to create Docker container, so solution
Connect with VS Code from a Windows client to Docker on another server
I was addicted to not being able to connect to AWS-S3 from the Docker container
Build a Laravel / Docker environment with VSCode devcontainer
Keep docker container running with no resident process running
I made a Docker container to run Maven
How to update pre-built files in docker container
Edit Docker Container in VSCode multi-stage SSH Vagrant
How to give your image to someone with docker
Update container image with KUSANAGI Runs on Docker
I want to play with Firestore from Rails
Make Volume faster when using Docker with vscode.
How to use docker compose with NVIDIA Jetson
Docker Container Operations with Docker-Client API for Java
How to use nginx-ingress-controller with Docker for Mac
[Rails] How to build an environment with Docker
Try using another Servlet container Jetty with Docker
Easy to display hello world with Rails + Docker
Temporarily move Docker environment from Mac to AWS
How to build a Jenkins server with a Docker container on CentOS 7 of VirtualBox and access the Jenkins server from a local PC
[Docker] How to update using a container on Heroku and how to deal with Migrate Error