更新时间:2023-02-21 09:36:18
you can try this!
"version": "0.1.0"
"command": "g++",
"isShellCommand": true,
"args": [
"main.cpp",
"`pkg-config", "--libs", "--cflags", "gtkmm-3.0`",
]
you should control how the argument is quoted.
more information: Task in Visual Studio Code