Do you offer any keyboard shortcuts in DataCamp's coding console?
Yes! Using shortcuts could enhance your learning experience because it’s easier and gets your job done faster than using the mouse. Not to mention, using a mouse too much can cause repetitive strain injury.
Below are shortcuts that should help speed up your workflow when working on the exercises.
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 writing your code in script.py
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