开发者

Python IDLE equivalent of CTRL-R in R

开发者 https://www.devze.com 2023-02-20 09:19 出处:网络
If you have a script open in the Windows version of R, you can r开发者_StackOverflow中文版un a line (or section of highlighted code) in the shell by hitting CTRL-R (believe it\'s command-enter in appl

If you have a script open in the Windows version of R, you can r开发者_StackOverflow中文版un a line (or section of highlighted code) in the shell by hitting CTRL-R (believe it's command-enter in apple version). Is there similar functionality for IDLE? Many thanks


No

In the shortcut key list in IDLE, in Options > Configure IDLE > Keys, in the Action - Key(s) list, one does not find any shortcut key for executing selected code.


IDLE with IdleX supports the ability to run a single line of code or a selection by pressing F9. It also has subCodes which allows you to run code in between '##' comments. It has the same effect as highlighting a lot of code for execution, but you don't need to keep highlighting each time.


If you type part of your search string before hitting Alt+P, then Alt+P will find only items starting with what you typed.

Pasting here from my own answer at https://stackoverflow.com/a/27702886/492336

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号