简体   繁体   English

VSCode:无法打开文件

[英]VSCode : Unable to open file

Unable to open file ... Cannot read file ...无法打开文件...无法读取文件...

I keep getting the error whenever i use Command+P to open a file by name on my mac.每当我使用Command+P在 Mac 上按名称打开文件时,我都会收到错误消息。 The structure of the project has changes many times these last days.最近几天,该项目的结构发生了多次变化。 How can i re-run the projects path generation for VSCODE?如何重新运行 VSCODE 的项目路径生成?

I tried rebuilding the code, but i am not sure exactly when or if VSCode rebuilds its internal file paths.我尝试重建代码,但我不确定 VSCode 何时或是否重建其内部文件路径。

Could it be a problem with my extensions?我的扩展可能有问题吗? I mean it keep referring to files/paths that WERE there earlier, but are not there now.我的意思是它一直指的是之前存在但现在不存在的文件/路径。

To clear the file content cache in Visual Studio Code, open the command palette:要清除 Visual Studio Code 中的文件内容缓存,请打开命令面板:

  • For Mac: ⇧⌘P or F1对于 Mac:⇧⌘P 或 F1
  • On Windows and Linux: Ctrl + Shift + P在 Windows 和 Linux 上:Ctrl + Shift + P

and type command:并输入命令:

Clear Editor History 

Press Enter按 Enter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM