每当我在 VS Code 中创建 HTML 文件时,屏幕都是黑色的,我无法在其中写入。而每当我创建另一个扩展名(例如 .java 或 .css)的文件时,它就会工作并且我可以输入它。告诉我该怎么做。
当我制作文件时,它说:
添加.html后,它显示空白屏幕:
但是我可以用其他扩展名写:
我删除了 vim 扩展,但这不起作用,我不知道该怎么办。
我认为你的 html 预览默认是打开的。因此,右键单击要打开的 html 文件,然后单击使用文本编辑器打开。现在我想你的问题已经解决了。
右键单击->打开方式->文本编辑器
谢谢你
一些物品--