无法在 VS Code 中写入 html 文件

问题描述 投票:0回答:2

每当我在 VS Code 中创建 HTML 文件时,屏幕都是黑色的,我无法在其中写入。而每当我创建另一个扩展名(例如 .java 或 .css)的文件时,它就会工作并且我可以输入它。告诉我该怎么做。

当我制作文件时,它说:

when i make a file it says this

添加.html后,它显示空白屏幕:

after adding .html it shows blank screen

但是我可以用其他扩展名写:

but i am able to write in other extension

我删除了 vim 扩展,但这不起作用,我不知道该怎么办。

html visual-studio-code
2个回答
0
投票

我认为你的 html 预览默认是打开的。因此,右键单击要打开的 html 文件,然后单击使用文本编辑器打开。现在我想你的问题已经解决了。

右键单击->打开方式->文本编辑器

谢谢你


-1
投票

一些物品--

  1. 尝试卸载它并进行全新安装。
  2. 将其提交给 Microsoft 报告 Visual Studio 产品或安装程序的问题
© www.soinside.com 2019 - 2024. All rights reserved.