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

3

7

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

Thanks

Grandma answered 13/1, 2011 at 2:8 Comment(0)
H
15

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.

Hector answered 13/1, 2011 at 2:28 Comment(4)
Thank you! It's Control-p for the MacGrandma
@Lana, no worries. Though, if you like my answer please accept it =~)Hector
Alt+P and Alt+N on Windows. Ctrl+P and Ctrl+N on a mac.Postboy
On my mac, the Python/Preferences/keys/Keys Set/ were set for 'IDLE Classic Windows' and C-p initiated a print. Setting it to 'IDLE Classic Mac' made the C-p do a previous line as described. This dialog box also lists the key bindings for the various selected settings.Oribel
M
3

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.

Madelene answered 10/10, 2012 at 22:42 Comment(0)
E
1

Also, you can scroll back up to any previous line and hit 'return', which will place that statement in the current working line.

Engineer answered 9/7, 2014 at 2:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.