我在OS X下的Sublime 2(v2.0.2)中使用SublimeREPL。我将Python文件发送到SublimeREPL窗口进行评估,我想不时清除SublimeREPL窗口。该窗口似乎是只读的,因此cmd-a,delete不起作用。
答案 0 :(得分:10)
在linux / osx系统上使用 ctrl + l ;在Windows上它是 shift + ctrl + c
SublimeRepl文档在这里SublimeRepl keys
Linux OS X Windows Command used Meaning
Alt+p Ctrl+p Alt+p repl_view_previous Walk back to previous input, no autocomplete
Down Down Down repl_view_next Walk back to next input, with autocomplete
Alt+n Ctrl+n Alt+n repl_view_next Walk back to next input, no autocomplete
Enter Enter Enter repl_enter Send current line to REPL
Esc Esc Esc repl_escape Clear REPL input
Ctrl+l Ctrl+l Shift+Ctrl+c repl_clear Clear REPL screen
Shift+Ctrl+c Shift+Ctrl+c Unsupported subprocess_repl_send_signal Send SIGINT to REPL