首先我们翻译一下这个
![](https://img.haomeiwen.com/i2070290/2e87d7669c62c8c7.png)
翻译得到的结果如下
Path Intellisense removes the file extension by default if the statement is a import statement. To enable file extensions set the following setting to true:
如果语句是导入语句,则默认情况下,Path Intellisense会删除文件扩展名。要启用文件扩展名,请将以下设置设置为true:
找到解决方案 将extensionOnImport设置为true即可实现功能
去往设置页面
![](https://img.haomeiwen.com/i2070290/3e5df8804a5f0f3f.png)
找到它并勾选
![](https://img.haomeiwen.com/i2070290/88f241e999ab8015.png)
勾选完后的效果
![](https://img.haomeiwen.com/i2070290/75e5a18aa4348b37.gif)
网友评论