Automatically generating an exercise
You can automatically generate an exercise: a folder with the necessary structure and all required files. After the exercise is generated based on the template, you can edit it and fill it with content.
To generate an exercise, complete these steps:
- In the main menu, click View > Command Pallete.
- In the command line enter (or select) Generate exercise.
- Specify the exercise name and press Enter.
- Specify the number of instructions in your exercise. Each instruction contains a condition for learners to solve. The number of test files generated will equal the number of instructions.
The template exercise is created. Now you can edit it and add the required content.
Example
An example of a generated exercise with three instructions is shown in the screenshots below:

The configuration file content looks as follows:

The instruction file content looks as follows:

You will need to specify here the applicable instructions on how to implement your exercise.
| Information | IMPORTANT: Use the third-level header Markdown formatting (###) only to designate steps of the exercise. Each line with ###1, ###2, and so on will be converted into the subsequent exercise step. |
The solution file content looks as follows:

You will need to specify here the correct solution input expected from a learner.
The content of the test file for the first instruction looks as follows:

You will need to specify in each test file the conditions for checking the correctness of the solution to a corresponding instruction. See Using tests in an exercise and Running tests in an exercise for more detail.