Lana
Lana

Reputation: 71

keyboard short cut for accessing previous statements in python IDLE using a Mac

Is there a keyboard short cut for accessing previous statements in python IDLE? I am using a Mac

Thanks

Upvotes: 7

Views: 21732

Answers (3)

villancikos
villancikos

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

K.C. Barrett
K.C. Barrett

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

William
William

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

Related Questions