当全局配置为使用空格时,在 IntelliJ/PhpStorm 中的 Makefile 中写入制表符?

Write tabs in Makefile in IntelliJ/PhpStorm when configured globally to use spaces?

我用PhpStorm/IntelliJ。它默认配置为使用空格缩进,因为我经常使用 PHP 的 PSR-2 标准。 我不想更改默认缩进设置

但是我想编写 makefile,它们需要使用制表符进行缩进。

如何在 PhpStorm/IntelliJ 中使用空格作为默认缩进来编写 makefile?

1) 至此,有一个Makefile plugin for PhpStorm

如果您使用此插件并创建一个 Makefile,它将自动使用标签。

2) 另一种解决方案是更改 Makefile not to use tab as prefix。但是,我不太喜欢这个解决方案,因为它需要较新版本的 gmake,这会降低它的可移植性。