How to use IDE macros? Follow
I'm trying to use the IDE macros in RubyMine but they don't seem to work at all.
For example, I'm configuring a Shell Script from the Edit configurations, and in the `Script Options` section I put $FileDir$ and when the script runs it sends the string `$FileDir$` to the script, not the current file path.
Any ideas on how to use these?
Please sign in to leave a comment.
Currently they aren't supported in Shell script run configurations: https://youtrack.jetbrains.com/issue/IDEA-293079/Add-macros-support-for-script-path-script-options-in-Shell-Script-RC
Please follow the issue for updates.
Thanks Yaroslav, bummer! I'm just trying to automatically run RubyCritic against the open file, can you suggest any ways to do it via the IDE?
If it's a gem, then you can try using Gem Command run configuration: