This article explains how to enable keyboard shortcuts in challenges and provides a detailed overview of what each shortcut does.
How to enable Keyboard Shortcuts
Step 1
You can view all available keyboard shortcuts in 3 different ways:
1. Select Shift ?
2. Click the 'View shortcuts' button
3. Click the gear icon and choose 'Show hotkeys'
Step 2
This will open a popup, simply toggle on/off the "Keyboard Hotkeys" setting
Available Shortcuts
Shortcut Name | Shortcut Binding | Shortcut Explanation |
Pick solution | 1,2,3,4 | Switches between the different solutions 1-4 respectively |
Submit answer | Shift + Enter | Submit the currently selected answer |
Focus file explorer | 0 | Moves the keyboard focus to the file explorer section |
Syntax highlighting | H | Removes any syntax highlighting (different coloured text in the code) |
Word Wrap | W | Wraps the text so you will not have to scroll left to right for longer pieces of code |
Toggle inline/side-by-side diff view | I | Toggles between an inline view of the differences between the vulnerable code and your selected solution or display both side-by-side |
Hints | G | This will open the Hint window, pressing G again will use the available hint |
Expand/collapse sidebar | ' | This will expand or close the informational bar on the left-hand side |
Show hotkeys | ? | Opens the "view shortcuts" pop up |
Skip challenge | S | Skips the challenge, if available this will find a similar challenge of the same vulnerability as an alternative. |
Search files by name | P | This will open a popup of all available file names in the challenge. Search for the file and hit enter to open it. |
Open previously marked file | Shift + K | This will open the previously marked file in the file explorer (files marked with *) |
Open next marked file | Shift + J | This will open the next marked file in the file explorer (files marked with *) |
Jump to previous highlighted lines | Shift + H | This will jump to the previously highlighted code chunk |
Jump to next highlighted lines | Shift + L | This will jump to the next highlighted code chunk |
Related Links:
Comments
0 comments
Please sign in to leave a comment.