Suppose I have some code written like:
a_to_b = self.tversky(a, b)
b_to_c = self.tversky(b, c)
d_to_e = self.tversky(d, e)
e_to_f = self.tversky(e, f)
g_to_h = self.tversky(g, h)
I would like to select as a rectangle the variable names x_to_y
and then paste it into array as so:
return [a_to_b, b_to_c, d_to_e, e_to_f, g_to_h]
I don't necessarily need the commas in one command, but basically selecting a few columns and then applying M-S ^
to each line. So I can get them all next to each other.
M-S ^
, and what did you intend by applying it to each line?