Skip to main content
All CollectionsTips & Tricks
Become a DataCamp power user
Become a DataCamp power user

Learn hotkeys to create content faster!

Amy Peterson avatar
Written by Amy Peterson
Updated over 6 years ago

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 hint

  • ctrl + h (2x): Generate solution

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

  • ctrl/⌘ + shift + enter: Submit answer

For when you're building your course:

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

  • ctrl/⌘ + shift + m : Create pipes (%>%) 

  • ctrl/⌘ + a : Select all

  • ctrl/⌘ + c : Copy

  • ctrl/⌘ + v : Paste

  • ctrl/⌘ + x : Cut

  • ctrl/⌘ + z : Undo

  • ctrl/⌘ + y : Redo

  • ctrl/⌘ + shift + s : Save

  • 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

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!

Did this answer your question?