If you aren't already a keyboard ninja, become one! Keyboard shortcuts, or hotkeys, help you work faster and more efficiently. Many of the hotkeys listed below are common to most text editors, so learning them will save you time outside of DataCamp too!
For when you're taking a course:
ctrl + h
(1x): Generate hintctrl + h
(2x): Generate solutionctrl/⌘ + enter
: Execute line or selected codectrl/⌘ + shift + enter
: Submit answer
For when you're building your course:
ctrl/⌘ + shift + /
: Comment out codectrl/⌘ + shift + m
: Create pipes (%>%)ctrl/⌘ + a
: Select allctrl/⌘ + c
: Copyctrl/⌘ + v
: Pastectrl/⌘ + x
: Cutctrl/⌘ + z
: Undoctrl/⌘ + y
: Redoctrl/⌘ + shift + s
: Savefn + delete
: Forward delete (macOS)alt + shift + arrow
: Select chunks of textoption + arrow
: Move text cursor between chunks of codectrl + shift + arrow
: Select a line of textctrl + arrow
: Move text cursor to the end of a lineshift + arrow
: Select text by character
If you have any hotkeys listed that you've found particularly useful while building DataCamp content, let us know and we'll add it to the list!