【发布时间】:2021-01-26 19:59:40
【问题描述】:
我是 python 编码的新手。
我的规格是:
MacBook Pro macOs 10.14.6 (Mojave).
Python 3.9.0 loaded october 5, 2020.
Visual Studio Code 1.49.3
我想在给定的 file.py 中自动: 保存修改后的脚本并 在运行新修改的代码之前,擦除输出窗口中的先前输出。
在VSC中,我试过没有成功:
“保存”“自动保存”,然后 在“settings.json”中添加:“code-runner.saveAllFilesBeforeRun”:true。
根据一位贡献者(Molly Wang)的建议,我在settings.json中添加了:
"files.autoSave": "afterDelay", “code-runner.clearPreviousOutput”:是的,
但是在VSC输出窗口中,自动保存和自动擦除都不起作用,我不明白为什么。enter image description here
【问题讨论】:
-
这能回答你的问题吗? Visual Studio Code - Save file before build
标签: python macos visual-studio-code configuration