我的Visual Studio代码在Windows计算机上,即使在更新了此文件之后,仍会向我显示文件的先前内容,而notepad ++
的行为方式不同。
有没有办法以某种方式清理缓存以便每次都能接收新内容?
答案 0 :(得分:78)
我想,我理解正确。您可以按照以下步骤操作。
它将解决您的问题。
答案 1 :(得分:2)
在 macOS 上对我来说,以下方法有效:
然后显示搜索结果:
答案 2 :(得分:1)
这对我有用。
在.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}"
}
]
}
并在启动配置(.vscode/launch
)中使用任务
{
"version": "0.2.0",
"configurations": [
{
...
"preLaunchTask": "clear-editor-history"
...
}
]
}