Filtering lines through an external program

Is there any way in IDEA to extract some selected lines in the editor and pass them through an external program, then replace the selection with the output of the external tool?

I would like to select some lines and pass them to "sort", then return the output of sort to the current editor.


Please sign in to leave a comment.