run_all_to_cursor by its name, run the code in the current script above the cursor. I suggest binding this addin with shortcut Ctrl+Alt+R.

run_all_to_cursor()

See also

run_selected_arguments