Keyboard shortcuts for VSCode terminal and IRIS
Hi developers!
Every day coding with IRIS and docker I call the following 3 commands in VSCode terminal. Always the same for any projects:
docker-compose build ; to build the container docker-compose up -d ; to run the IRIS in container docker-compose exec iris iris session iris ; to open the IRIS terminal
Is there any way to map the key sequence which will type me the rest?
e.g.
irisb for docker-compose build, irisup for docker-compose up -d, irist for docker-compose exec iris iris session iris
I know and use keyboard sequences for mac, but it doesn't work in VSCode terminal :/
Just install this extension for Docker, and you will be able to up, and down compose configuration, from the context menu on file, or from the command palette.
And of course, after that, you will be able to set any shortcut for those commands
Another solution would be to use tasks in VSCode. So, you can add new or edit file .vscode/tasks.json, with content like this.
And by command Run task from the command palette, it will offer to select which task to run.
Have this Docker extension but didn't know the feature. VSCode Tasks are interesting too. Cool stuff thanks.