Skip to main content

Keyboard Shortcuts in DataCamp

Problem:

Do you offer any keyboard shortcuts in the coding console and video player?

Solution:

Yes! Below are shortcuts that can help speed up your workflow:

Keyboard shortcuts for when you're taking a course:

  • ctrl + h (1x): Generate hint

  • ctrl + h (2x): Generate solution

  • ctrl/⌘ + enter : Execute line or selected code

  • ctrl/⌘ + shift + enter: Submit answer

Keyboard shortcuts for when you're writing your code in the script pane:

  • ctrl/⌘ + shift + / : Comment out code

  • ctrl/⌘ + a : Select all

  • ctrl/⌘ + c : Copy

  • ctrl/⌘ + v : Paste

  • ctrl/⌘ + x : Cut

  • ctrl/⌘ + z : Undo

  • ctrl/⌘ + y : Redo

  • fn + delete : Forward delete (macOS)

  • alt + shift + arrow : Select chunks of text

  • option + arrow : Move text cursor between chunks of code

  • ctrl + shift + arrow : Select a line of text

  • ctrl + arrow : Move text cursor to the end of a line

  • shift + 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.

Did this answer your question?