Makefile plugin for pycharm
Victor Kropp, one of JetBrains employees, wrote Makefile plugin that adds a bunch of nice features, and most importantly tab support. See https://plugins.jetbrains.com/plugin/9333-makefile-support
Updated: as stated by Amir Katz: from PyCharm 2017 and onwards adding a TextMate bundle is under Settings->Editor->TextMate Bundles.
From PyCharm 2.7 and onwards another option would be to use PyCharm's TextMate bundles support: https://confluence.jetbrains.com/display/PYH/TextMate+Bundles+in+PyCharm
You can download the TextMate Makefile bundle here: https://github.com/textmate/make.tmbundle and then install it in PyCharm.
There is now a plugin available on the official repository: intellij-makefile
Fully supports GNU Make syntax.
Provides:
- syntax highlighting
- keywords & target names completion
- run configurations
- gutter marks & context actions to run targets
- quick-doc for ## comments on target line
- find usages and Go To Symbol navigation for targets
- prerequisites resolution
- rules, variables and conditionals folding
- quick fixes to create new rule from unresolved prerequisite and remove empty rule
From Dealing With Makefiles in IntelliJ
After considering and accepting the security risk of installing from an untrusted source, you can import the .jar
in your application.
Syntax Highlighting
It's turns out it is possible to create custom file types in IntelliJ, I've created one for Makefiles. The number highlighting is a bit funky but the rest should be good. To install it you can download this settings jar:
https://www.everythingfrontend.com/files/makefile.jar
Then just go to
File
>Import Settings
and import that file.Indent with Tabs
If you have a setting to detect indentation enabled, this should just work, but in case it doesn't you can install EditorConfig plugin and then add the following to your .editorconfig settings:
# Override for Makefile [{Makefile, makefile, GNUmakefile}] indent_style = tab indent_size = 4
For Pycharm 2018 and Ubuntu OS,
Go to File > Settings> Plugins
Now search for Makefile support
,
install it (you will need to reboot upon installation).