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!
Keyboard shortcuts 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
Keyboard shortcuts for when you're writing your code in the script pane:
ctrl/⌘ + shift + /
: Comment out codectrl/⌘ + a
: Select allctrl/⌘ + c
: Copyctrl/⌘ + v
: Pastectrl/⌘ + x
: Cutctrl/⌘ + z
: Undoctrl/⌘ + y
: Redofn + 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
Keyboard shortcuts for when you're watching videos on DataCamp:
Left Arrow (←): Rewind 5 seconds
Right Arrow (→): Fast forward 5 seconds
K: Pause/Unpause
Spacebar: Pause/Unpause
F: Toggle fullscreen
Double Click: Toggle fullscreen
C: Toggle subtitles
M: Toggle mute
Shift + Dot (.): Increase volume by 10% of max volume
Shift + Comma (,): Decrease volume by 10% of max volume
Number Key (1-9): Skip to the corresponding percentage of the video (e.g., pressing "6" will jump to 60% of the video)
Note: These shortcuts work on desktop and may vary depending on your device and browser.
For mobile app users, tapping the screen plays/pauses the video.
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!