这是我之前在博客园写的文章,现在搬运过来,博客园文章地址
ctrl+, 搜索:Code-runner: Run In Terminal 勾选Whether to run code in Integrated Terminal
完:)