0

我正在将编辑器切换到 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什么?

4

2 回答 2

1

最好的方法是使用Mac上的/和 Windows 和 Linux 上的/扩展/收缩选择操作的快捷方式。这是它的样子Alt+Up ArrowAlt+Down ArrowCtrl+WShift+Ctrl+W

于 2018-06-25T10:26:50.840 回答
0

在 Mac 中,它的选项 + 向上/向下箭头

于 2022-02-16T08:54:53.320 回答