VSCode Associating a file without extension to xml

陌路散爱 提交于 2021-01-20 08:42:10

问题


I want to associate all files without extension to xml format in VSCode.

When I do below, it makes all files (even with extensions) as xml. "files.associations": { "*": "xml" }

Any way to achieve this?


回答1:


If I understand correctly, then you can add the following in the settings:

"files.associations": {
    "[!.]*": "xml",
},


来源:https://stackoverflow.com/questions/50259434/vscode-associating-a-file-without-extension-to-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!