2

When I open a file on Rubymine, that has i18n string using "Ruby translate method", it displays a "preview" of the translated text instead of the actual code "t('translate_key')". When I click the text it shows up the code as expected, but I would like to know how can I make it displays the preview again for that piece of code.

I've tried many things from closing the file and opening it again but got unsuccessful. I believe that may have a keyboard shortcut to switch from "string preview" to "actual code", but haven't been able to find it.

4

2 回答 2

1

我发现正确的方法是折叠线(它可能不明显,因为折叠通常用于折叠块)。

菜单项是:“代码 > 折叠 > 折叠”。在使用“Mac OS X 10.5+”键盘映射的 Mac OS X 上,快捷方式是⌘</kbd>+-

于 2013-11-27T14:44:00.923 回答
1

转到首选项菜单、IDE 设置、编辑器、代码折叠,然后取消选中“Ruby i18n 字符串”。您需要关闭并重新打开文件才能看到展开的 i18n 字符串。

于 2013-11-26T14:46:30.850 回答