And in short I need advice or help with making something like that for PyCharm.
Here is python code for that pluginhttps://github.com/surjikal/sublime-coffee-compile/blob/master/coffee_compile.py
So it takes selected text, starts coffeescript compiler as a sub process with stdin on and just write selected text in to that process, after which reads output and you see it in a new window or something.
Coffescript compiler has –eval option that allows to compile one coffescript line like that:
coffee -bpe "alert 'hello world'"
Sadly I did not find a way to exploit that one because of one line limitation and some other problems
Then there is –stdio argument which is actually used in that Sublime plugin, and it seems to me to be a more correct way, I just am not sure from where to start with running coffee in –stdio mode and sending selected text in to it, and then outputting result in to console.