Pass a parameter to an External Tool?
I've been using External Tool successfully, they are great. I often run unix scripts without parameters. But some unix scripts need a parameter(s). Is it possible to some how pass the parameter to the External Tool instead of hardcoding it into a new External Tool? Thanks.
Please sign in to leave a comment.
Depending on what you need. For example, you can use a macro (check Insert Macro button in Edit Tool dialog).
Regards,
Alexander.
Yes I was away of those Macros. But what I am looking for is the ability to pass in an arbitrary string that the user provide. Something like the macro being $1 and a little dialog box would pop up. I don't think it exists, I've searched hi and lo. thanks!
To get a dialog box (to enter the parameter), please, try $Prompt$ macro (check the list). Works for me, but I've checked it on Windows.
Regards,
Alexander.
Thanks you that helps immensely.
Hello,
regarding macro $Prompt$ in external tools I see there is one thing to improve. It would by really nice and helpful to provide option to configure macro $Prompt$ with custom message. When I have created an external tool with 2 prompts I need some description for every prompt.
Can I create a ticket in YouTrack for it?
Thanks.
Best regards
Lukas
Hey Lukas,
There is this support ticket you can try to bump up :)
https://youtrack.jetbrains.com/issue/IDEABKL-867