Appearance
Keyboard short cut
PyConsole supports the following keyboard short cut
- Normal Input:
| key binding | command |
|---|---|
| Enter | run code under current input |
| Shift + Enter | enter a new line |
| Ctrl + Enter | run command |
| Arrow up | go to previous command |
| Arrow down | go to next command |
| Ctrl + k / p | go to previous command |
| Ctrl + j / n | go to next command |
| Ctrl + a | go to start of command |
| Ctrl + e | go to end of command |
| Ctrl + d | Keyboard Interrupt (firefox addon currently not working) |
| Ctrl + h | move cursor left by one character |
| Ctrl + l | move cursor right by one character |
| Ctrl + u | clear content of current line |
- Auto Complete:
| key binding | command |
|---|---|
| Tab | Select next auto complete |
| Ctrl + j | Select next auto complete |
| Ctrl + k | Select previous auto complete |
| Esc | exit autocomplete pop up menu |
- Vim normal mode:
| key binding | command |
|---|---|
| Esc | Switch to vim normal mode |
| i | Insert character to left of cursor |
| w | Move cursor one word forward |
| b | Move cursor one word backward |
| j | Move cursor one line down |
| k | Move cursor one line up |
| h | Move cursor one character left |
| l | Move cursor one character right |
| s | Delete character under current cursor switch to insert mode |
| x | Delete character under current cursor keep in normal mode |
| dd | Delete current line |
| o | Add a new line below current line |
| O | Add a new line above current line |