Reputation: 1225
I basically want a workflow that goes like this:
I'm working on a script and run into some issues so I:
Options I'm aware of (that I don't care for)
I feel it would be a lot smoother for my workflow if I could just hit some key combo and BAM! the last line of code I executed is just put at the bottom of the current file.
Can it be done? Anyone have some insight?
Upvotes: 0
Views: 233
Reputation: 36033
If you've just typed a statement, hit enter, seen that it looks right, and have an empty prompt waiting, you can:
If the whole statement fits on a single line, you can skip step 2: in general if nothing is selected then Cmd+C copies the whole line at the cursor.
The prompt >>>
or In[x]
will not be copied.
You still have to click in the editor to paste, and I don't see a way around that. But at least for the copying you can save on some mouse movement.
Upvotes: 1