I use PhpStorm/IntelliJ. It is configured to indent using spaces by default because I use PHP's PSR-2 standard a lot. I don't want to change the default indentation settings.
However I want to write makefiles and they require to use tabs for indentation.
How can I write makefiles in PhpStorm/IntelliJ with spaces as default indentation?
By now, there is a Makefile plugin for PhpStorm. If you use this plugin and create a Makefile
, it will automatically use tabs.
Another solution is to change the Makefile not to use tab as prefix. However, I do not like this solution very much because it requires a newer version of gmake which makes it less portable.