Generate a function that creates values of a struct type

To create a constructor, place the caret at your code, and press &shortcut:Generate;. In the Generate window, select Generate constructor. Select fields that you want to use in the constructor and click OK.