Security Journey provides supports source code editing in an in-browser version of the Visual Studio Code (VS Code) editor for a select number of coding challenges.
Learners are able to utilize most of VS Code's built-in features to aid in development. This includes features such as:
IntelliSense
Built-in terminal
Preferences modifications
Find & replace
Auto-completion
Syntax highlighting
Error detection
There are, however, a few features which are limited or are otherwise unavailable for use due to sandbox constraints or for security. These limitations are as follows:
User-level preferences cannot be modified; only Machine or Workspace preferences are editable.
The built-in debugging functionality is not available for use.
Any preferences that are modified do not get persisted across sandboxes.
If the user resets the sandbox or loads a new sandbox, the settings will change back to their default values.
Changes to files will automatically be saved when focus leaves the IDE (such as when you select the button to submit your code for testing). Alternatively, you may manually save them after editing.
This can be done either by select File -> Save/Save All or by using the keyboard shortcuts:
Mac: β + S (save current file) or β + β₯ + S (save all)
Windows: CTRL + S (save current file)
Note: The application will automatically attempt a rebuild after the code is saved.
For a more in-depth guide to VS Code, please see Microsoft's official documentation here: https://code.visualstudio.com/docs