如何向 VS Code makefile 扩展添加新的文件扩展名

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

我想添加其他文件扩展名以被识别为 makefile,例如 makefile.in。 Visual Studio Code 中的设置在哪里可以进行此更改?

makefile vscode-extensions
1个回答
0
投票

单击

Preferences
>
Settings
。这将打开 VS Code 设置选项卡。

单击“设置 JSON”选项卡:

将其修改为如下所示:

{
    "workbench.colorTheme": "Default Dark Modern",
    "tabnine.experimentalAutoImports": true,
    "explorer.confirmDragAndDrop": false,
    "files.associations": {
        "Makefile.in": "makefile"
    }
    
}

“files.associations”是您可以添加所需自定义的位置。

© www.soinside.com 2019 - 2024. All rights reserved.