【发布时间】:2021-03-26 22:51:09
【问题描述】:
我更改了输入,但每次使用 Code Runner 都会产生相同的输出。 It shows only the first input I entered at the beginning not the changed input
【问题讨论】:
标签: javascript vscode-code-runner
我更改了输入,但每次使用 Code Runner 都会产生相同的输出。 It shows only the first input I entered at the beginning not the changed input
【问题讨论】:
标签: javascript vscode-code-runner
如果您遇到像我这样的问题,您必须不停地保存文件 您可以通过设置 - 搜索保存 - 保存 - 手动而不是自动执行此操作 Code Runner - 运行前保存所有文件。
【讨论】:
发生这种情况是因为文件的最后保存版本被重新执行,因为对代码的任何新编辑都没有被编译。
自动保存会自动解决问题。或者在运行代码之前执行Ctrl + S / Command + S。
【讨论】: