【问题标题】:Beautify Ruby source code with Geany使用 Geany 美化 Ruby 源代码
【发布时间】:2012-12-09 15:30:09
【问题描述】:

如何让Geany 美化或美化 ruby​​ 代码?这两者有什么区别呢?

我的主要兴趣是缩进,缩进是一致且正确的。

如果没有插件,我想将gem 集成到 Geany 中。

另请参阅:
SO question 1194185
PlugIn for Ruby Refactoring

【问题讨论】:

    标签: ruby code-formatting pretty-print geany


    【解决方案1】:

    Geany 允许这由外部工具处理,例如 astyle。转到Edit->Format->Send Selection to->Set Custom Commands 设置外部工具并使用astyle --style=gnu -FpPn、sort 和其他工具。只要上面提到的脚本能够从命令行运行,我想也可以将它设置为这样的外部工具。

    特别是对于 ruby​​,您可以使用rbeautify

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-30
      • 2011-11-13
      • 1970-01-01
      • 1970-01-01
      • 2010-09-06
      • 1970-01-01
      • 2016-01-04
      • 2010-10-29
      相关资源
      最近更新 更多