【发布时间】:2016-03-06 08:43:27
【问题描述】:
我希望能够链接实时模板预定义函数,以便一个的输出可以用作另一个的输入,如下所示:
underscoresToSpaces(fileNameWithoutExtension())
我有一个(可能是错误的)记忆,以前能够做到这一点,但无法让它再次工作。
我正在使用 RubyMine 8.0.3。
【问题讨论】:
标签: rubymine jetbrains-ide live-templates
我希望能够链接实时模板预定义函数,以便一个的输出可以用作另一个的输入,如下所示:
underscoresToSpaces(fileNameWithoutExtension())
我有一个(可能是错误的)记忆,以前能够做到这一点,但无法让它再次工作。
我正在使用 RubyMine 8.0.3。
【问题讨论】:
标签: rubymine jetbrains-ide live-templates
在 RubyMine 实时模板中链接预定义函数对我来说很简单。在 Preferences → Editor → Live Templates 中定义这个实时模板
在编辑器中输入 fws 会插入不带空格的文件名。
当前的 RubyMine(我也在使用 8.0.3)有 a bug which causes a template variable's expression to not be saved properly if you tab out of the expression field. 在输入表达式后单击“确定”来解决它。
【讨论】: