Improve sending code to interactive console
Brought to you by:
fabioz
Allow easy sending of a block of code from the editor to the interactive console. Currently Ctrl+Alt+Enter sends the selected block verbatim. If the block is indented (e.g. it is part of a function definition) IndentationErrors will be generated for each line, and the code will not execute, even if the code fragment is valid in the contect of the interactive window. The indentation of the first line of the code block should be removed before transmission to the console, and the same indentation adjustment should be made to all successive lines. (This should also happen if only a single line is selected)
Also Ctrl+Alt+Enter is inconvenient for such a common operation - could this either be configurable, or a function key assigned?