Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题,我的 vs 代码终端在输出后没有换行符请告诉如何在输出后添加换行符(第一张图像是我的输出,第二张图像是预期的输出)
打开VS Code,进入设置>扩展>运行代码配置打开settings.json(你必须为此安装代码运行器扩展),你必须有vscode设置json,然后code-runner.executorMap括号内换行符为白色,你必须有这样的东西
code-runner.executorMap
然后无论您编写什么语言,添加到字符串的末尾
"; echo -e"
所以你必须有这样的东西,例如我在java上编码结果是这样的