Same idea as creating an Ameter, you attach the measuring device like galvanometer or in this case an oscilloscope that measures Voltage in parallel to a small resistor, the measured voltage devided by the small resistor's value is the current, so i placed 1Ω so the denominator becomes 1 and now voltage is current (I Ignored the internal resistance of the Oscilloscope)