How to use IDE macros?
已回答
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?
请先登录再写评论。
Hello,
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?
Hello,
If it's a gem, then you can try using Gem Command run configuration:
https://www.jetbrains.com/help/ruby/run-debug-configuration-gem-command.html