首页 > 解决方案 > VSCode:如何将键盘快捷键绑定到 setting.json 条目

问题描述

我在我的.vscode/settings.json文件中配置了一个 Docker Compose Up 配方。如何绑定键盘快捷键来执行此配方?

{
    "files.exclude": {
        "**/.classpath": true,
        "**/.project": true,
        "**/.settings": true,
        "**/.factorypath": true
    },
    "java.configuration.updateBuildConfiguration": "automatic",
    "docker.commands.composeUp": [
        {
            "label": "Stack description",
            "template": "docker-compose -p test -f aa.yml -f bb.yml up -d --build"
        },

标签: visual-studio-codevscode-settings

解决方案


推荐阅读