RubyMine快捷方式选择整个代码块

时间:2018-06-21 15:04:45

标签: rubymine

我将编辑器切换到RubyMine,我想知道选择代码块最简单的方法是什么。我很惊讶默认快捷方式有点多余。说我有这段代码:

require 'spec_helper'

describe Promotions::DarkChocolatePromotion do
  let(:multiplier) { 2 }

  it "extends Chocolate Promotion" do
    expect(described_class.singleton_class.included_modules).to include(Promotions::ChocolatePromotion)
  end

  describe ".bonuses" do
    subject { described_class.bonuses(multiplier) }
    let(:expected_bonus) { { "dark" => 2 } }

    it { is_expected.to eq(expected_bonus) }
  end
end

describe ".bonueses"...一直到完成的end一直选择代码的最简单方法是什么?

1 个答案:

答案 0 :(得分:1)

最好的方法是对扩展/收缩选择操作使用快捷方式,在Mac上为Alt+Up Arrow / Alt+Down Arrow,在Ctrl+W / {{1} }(适用于Windows和Linux)。 Here's what it looks like