我的 Visual Studio 代码在 Windows 计算机上,即使在更新此文件后仍继续向我显示文件的先前内容,而
notepad ++
的行为方式不同。
有没有办法以某种方式清理缓存以便每次都能接收到新鲜的内容?
我想,我的理解是正确的。您可以按照以下步骤操作。
它会解决你的问题。
对于我来说,在 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}"
}
]
}
并在启动配置中使用任务(
.vscode/launch
)
{
"version": "0.2.0",
"configurations": [
{
...
"preLaunchTask": "clear-editor-history"
...
}
]
}
在 Windows 10 上,转到搜索框并输入“%appdata%”。之后,删除文件夹“code”
适用于 Windows 10
在 Visual Studio 代码中 步骤 1.Buld > 清洁溶液 步骤 2.构建 > 重建解决方案