【问题标题】:VsCode "Code Runner" producing same outputVsCode“Code Runner”产生相同的输出
【发布时间】: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


    【解决方案1】:

    如果您遇到像我这样的问题,您必须不停地保存文件 您可以通过设置 - 搜索保存 - 保存 - 手动而不是自动执行此操作 Code Runner - 运行前保存所有文件。

    【讨论】:

      【解决方案2】:

      发生这种情况是因为文件的最后保存版本被重新执行,因为对代码的任何新编辑都没有被编译。

      自动保存会自动解决问题。或者在运行代码之前执行Ctrl + S / Command + S

      【讨论】:

        猜你喜欢
        • 2023-03-08
        • 1970-01-01
        • 2020-04-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多