how should I handle this style indent?

as we know, sometime we just do indent like this style:

      @locale                     = I18n.api_locale
      @item_id                   = search_result.item_id
      @shop_url                 = search_result.shop_mng_id
      @base_sku               = File.basename(search_result.item_url)
      @shop_id                  = search_result.shop_id


but, defaultly, if I use rubymine to format the code, it will be changed into this style:


      @locale = I18n.api_locale
      @item_id = search_result.item_id
      @shop_url = search_result.shop_mng_id
      @base_sku = File.basename(search_result.item_url)
      @shop_id = search_result.shop_id


so. how can I change the configuration in rubymine to implement the above style?

2 comments
Comment actions Permalink

Hi,

try Settings|Editor|Code Style|Ruby|Align right parts of assignment or hashes

Regards, Oleg.

0
Comment actions Permalink

Yes! that's my goal! Thanks!

0

Please sign in to leave a comment.