{ "cells": [ { "cell_type": "markdown", "id": "c1d6be25", "metadata": {}, "source": [ "# Jupyter Keyboard Shortcuts\n", "\n", "This notebook covers common keyboard shortcuts that you can use to increase your productivity when working with Jupyter Notebooks.\n", "\n", "
\n", "NOTE : If you are on a Mac, substitute \"command\" for \"control\". Dont type the _+_ (it means press both keys at once).
\n", "\n", "***\n", "\n", "\n", "Shortcuts when in either _command mode_ (outside the cells) or _edit mode_ (inside a cell):\n", "---\n", "- `Shift` + `Enter` run selected cell or cells - if no cells below, insert a code cell below\n", "\n", "- `Ctrl` + `B` toggle hide/show left sidebar\n", "\n", "- `Ctrl` + `S` save and checkpoint\n", "- `Ctrl` + `Shift` + `S` save as\n", "- `Ctrl` + `F` find \n", "\n", "***\n", "\n", "\n", "Shortcuts when in _command mode_ (outside the cells, no blinking cursor):\n", "---\n", "- `Enter` enter _edit mode_ in the active cell\n", "\n", "- Scroll up with the up arrow \n", "- Scroll down with the down arrow\n", "\n", "- `A` insert a new cell above the active cell\n", "- `B` insert a new cell below the active cell\n", "\n", "- `M` make the active cell a Markdown cell\n", "- `Y` make the active cell a code cell\n", "\n", "- `Shift` + `Up Arrow` select the current cell and the cell above\n", "- `Shift` + `Down Arrow` select the current cell and the cell below\n", "- `Ctrl` + `A` select all cells\n", "\n", "- `X` cut the selected cell or cells\n", "- `C` copy the selected cell or cells\n", "- `V` paste the cell(s) which were copied or cut most recently\n", "\n", "- `Shift + M` merge multiple selected cells into one cell\n", "\n", "- `DD` (`D` twice) delete the active cell\n", "- `00` (Zero twice) restart the kernel\n", "\n", "- `Z` undo most recent command mode action\n", "\n", "Shortcuts when in _edit mode_ (inside a cell with a blinking cursor):\n", "---\n", "\n", "- `Esc` enter _command mode_\n", "\n", "- `Tab` code completion (or indent if at start of line)\n", "- `Shift` + `Tab` tooltip help\n", "- `Ctrl` + `Shift` + `-` split the active cell at the cursor\n", "\n", "The usual commands for code editors:\n", "\n", "- `Ctrl` + `]` indent\n", "- `Ctrl` + `[` dedent\n", "\n", "- `Ctrl` + `/` toggle comment\n", "\n", "Plus the usual shortcuts for select all, cut, copy, paste, undo, etc.\n", "\n", "***\n" ] }, { "cell_type": "code", "execution_count": null, "id": "88f53ece", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.4" } }, "nbformat": 4, "nbformat_minor": 5 }