【发布时间】:2018-07-22 07:24:23
【问题描述】:
所以我正在处理一个 C++ 项目。当我尝试 tar 文件时发生了错误。现在,当我在 Visual Studio Code 上打开文件时,它会显示这条消息。
The file will not be displayed in the editor because it is either binary, very large or uses an unsupported text encoding
这不仅仅是关于 Visual Studio Code,我无法在任何文本编辑器上打开该文件。文件扩展名还是.cpp
我怎样才能找回文件的原始版本?!
【问题讨论】:
-
用十六进制编辑器查看文件。它包含什么?
-
"当我尝试 tar 文件时" -- 你运行了什么命令?
-
您是否忘记“解压缩”存档?
-
始终使用版本控制。 Git 是你的朋友。