Open from command-line in correct IDE
I use WebStorm, PyCharm and PHPStorm & CLion for different projects. Files like HTML that could be in a project for any of these. I need a way to automatically select the correct IDE based on project in which it is located. I'm game for writing my own meta tool that would call the correct command line tool charm/webstorm/phpstorm/etc but how do I tell from looking at the contents of .idea folder which IDE is correct?
I want (or want to build) something like
meta-intellij-open --line <n> <file-path>
Note: I want this for iTerm2 CMD-click functionality which just has the file path and only one open script/program.
-Mike
请先登录再写评论。
You can try checking .iml files...
WebStorm and PHPStorm use the same module type (<module type="WEB_MODULE"), so there is no reliable way to tell from looking at the contents of .idea folder what IDE to use - both can actually be used.
PyCharm projects typically have "PYTHON_MODULE" module type, CLion - "CPP_MODULE"