@OvOy佬们,请教一下关于 在 macos 上使用 vscode 进行 commit 时,出现 `gpg: signing failed: Inappropriate ioctl for device` 的问题 中发帖

如题。在网上搜索看说是由于 GPG_TTY 的原因,如果没有这个,gpg 就不知道要与哪个进行通讯,就没法用了。 
在这之前,我在终端上进行 git commit 时,也有这个问题,通过在终端内进行 export GPG_TTY=$TTY 解决了,就是 佬们,请教下在macos上怎么用gnupg 这个帖子。但是,怎么在 vscode 中弄这个,就搞不懂了。
也有看到说,在 gpg.conf 中加入 use-agent 、pinentry-mode loopback(以及加 no-tty),然后在 gnupg-agent.conf 中加入 allow-loopback-pinentry、pinentry-program /opt/homebrew/bin/pinentry-mac,说是弄了这个就不用 GPG_TTY 了。但弄到最后,好像都是弄给终端用的,而不是给vscode用的,而且好像还...