Reputation: 71
Is there a keyboard short cut for accessing previous statements in python IDLE? I am using a Mac
Thanks
Upvotes: 7
Views: 21732
Reputation: 539
Using IDLE on the MAC you would need Ctrl+P (not command) for Previous statement (instruction) and Ctrl+N for Next statement.
I was struggling with this same question as I am always using the Up arrow on most of the "shell" style programs.
Upvotes: 3
Reputation: 152
Also, you can scroll back up to any previous line and hit 'return', which will place that statement in the current working line.
Upvotes: 1
Reputation: 1007
On Windows this hotkey is alt-p.
However, assuming IDLE has options in Mac ;) you should be able to find out by going to Options->Configure IDLE. Then look in the Keys tab and under Custom Key Bindings, look for "history-previous".
That should tell you what you need to know.
Upvotes: 15