Command mode (press ESC)
mode switch
- Enter — switch to edit mode
- Esc — switch to command mode
cell state switch
- y — code state
- m — markdown state
run cell
- Shift-Enter — run current cell & select next cell
- Ctrl-Enter — run current cell, keep current focus
- Alt-Enter — run current cell & insert a cell below
cell select
- k — up select
- j — down select
cell insert & remove
- a — above insert
- b — below insert
- dd — delete current cell
other cell operation
- c — copy
- x — cut
- v — paste below
- shift-v — paste above
- z — recover last deleted cell
- two space - Enter — new line
Edit mode (press Enter)
cursor move
- Ctrl-Home or Ctrl-Up — move cursor to cell head
- Ctrl-End or Ctrl-Down — move cursor to cell tail
Reference
[1] csdn-keyboard shortcuts
[2] in jupyter notebook, press h will show the keyboard shortcuts