Jon*_*han 49 visual-studio-code vscode-settings
我的Visual Studio代码在Windows机器上,即使在更新文件之后仍然向我显示文件的先前内容,notepad ++
而不是以相同的方式运行.
有没有办法以某种方式清理缓存,以便每次都收到新鲜的内容?
小智 110
我想,我理解正确.您可以按照以下步骤操作.
它会解决你的问题.
对于macOS 上的我来说,以下方法奏效了:
然后对于搜索结果:
这对我有用。
将此任务添加到.vscode/tasks.json
:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "clear-editor-history",
"command": "${command:workbench.action.clearEditorHistory}"
}
]
}
Run Code Online (Sandbox Code Playgroud)
并在启动配置 ( .vscode/launch
) 中使用任务
{
"version": "0.2.0",
"configurations": [
{
...
"preLaunchTask": "clear-editor-history"
...
}
]
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
45864 次 |
最近记录: |