Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Makefile plugin for pycharm

Is there any plugin for Makefiles for PyCharm? there were C/C++ but it is no longer supported and therefore compatible with the newest pycharm

like image 900
Quba Avatar asked Jan 24 '16 19:01

Quba


People also ask

Does CLion support Makefile?

You can load Makefile projects in CLion and benefit from all the smart features the IDE provides. Note that Makefiles support in CLion is in its early stages.


3 Answers

There is now a plugin available on the official repository: intellij-makefile

native plugin

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

like image 85
Édouard Lopez Avatar answered Sep 27 '22 22:09

Édouard Lopez


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

like image 37
Andrei Avatar answered Sep 27 '22 21:09

Andrei


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).

like image 22
Shamsul Arefin Sajib Avatar answered Sep 27 '22 23:09

Shamsul Arefin Sajib