Visual studio code VS代码加载React文件图标而不是JS文件图标
我安装了材质图标,它可以完美地显示JS图标,但是最近VS代码出于某种原因正在加载JS文件的react图标,我不知道为什么 Settings.json:Visual studio code VS代码加载React文件图标而不是JS文件图标,visual-studio-code,ide,vscode-settings,Visual Studio Code,Ide,Vscode Settings,我安装了材质图标,它可以完美地显示JS图标,但是最近VS代码出于某种原因正在加载JS文件的react图标,我不知道为什么 Settings.json: { "workbench.startupEditor": "newUntitledFile", "workbench.iconTheme": "material-icon-theme", "workbench.preferre
{
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "material-icon-theme",
"workbench.preferredLightColorTheme": "Monokai++",
"window.menuBarVisibility": "toggle",
"editor.minimap.enabled": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.rulers": [
80
],
"editor.selectionHighlight": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.suggestSelection": "first",
"editor.tabCompletion": "onlySnippets",
"editor.wordBasedSuggestions": false
},
"dart.previewLsp": true,
"dart.debugExternalLibraries": true,
"dart.debugSdkLibraries": false,
"[javascriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"liveServer.settings.donotShowInfoMsg": true,
"editor.formatOnSave": true,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.colorTheme": "Monokai++",
"editor.fontWeight": "normal",
"material-icon-theme.activeIconPack": "none",
"material-icon-theme.folders.associations": {
},
"material-icon-theme.files.associations": {
}
}
尝试将以下设置添加到配置中:
"material-icon-theme.files.associations": {
"**.js": "javascript",
}
使用此设置,可以将每个.js文件的图标设置为javascript图标1。分机是最新的吗?2.尝试删除
“材质图标主题.activeIconPack”:“无”
please@GillesHeinesch我现在试过了,但没用。这令人沮丧。是的,分机是最新的