新手问题 RubyMine 的 object literal (不知道是否可以这么称呼) 的 formatting 出错

imwildcat · February 11, 2018 · Last by imwildcat replied at February 12, 2018 · 1305 hits

JetBrains 官方论坛发帖没人回复:https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000042710-Buggy-formatting-for-object-literal-Ruby-

例 1:

会变成

例 2:

会变成

看了下 RubyMine 应该会尊重你对 Hash 构造的换行,只是会调整缩进。试了几次都没有复现这个情况。

Format 前:

Format 后:

我的 RubyMine 版本是 2017.3.2。不知道是不是和版本有关

Reply to dsh0416

感谢,我打算去 Linux 上分别安装 2017.3.2 和 2017.3.3/2017.3.4 试试~

Reply to dsh0416

已经解决,确实是我的 RubyMine 配置问题,我把配置全删了重建就好了。感谢!

imwildcat closed this topic. 12 Feb 18:20
You need to Sign in before reply, if you don't have an account, please Sign up first.