小编Moh*_*our的帖子

VS Code加载React文件图标而不是JS文件图标

我安装了材质图标,并且它可以完美地显示 JS 图标,但最近 VS 代码由于某种原因正在加载 JS 文件的反应图标,我不明白为什么。

在此输入图像描述

设置.json:

   {
    "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": {
       
    }
}
Run Code Online (Sandbox Code Playgroud)

ide visual-studio-code

2
推荐指数
1
解决办法
2603
查看次数

标签 统计

ide ×1

visual-studio-code ×1