DVT IDE for VS Code SystemVerilog User Guide
Rev. 22.1.36, 22 November 2022

6.7 Use Assignment Pattern for Struct Type Variable

If content assist is triggered when assigning a value to a struct type variable, it will provide an additional Use assignment pattern proposal.

Upon choosing it, an assignment pattern with all the fields of the struct being assigned will be created, including fields of internal structs.

Cycle between the placeholder tbd_val values with Tab to set the fields to your desired values. Press Enter to finish setting the values.

Additionally, you can change whether you want the assignment pattern to be multiline or not by using the DVT.textEditor.systemVerilog.contentAssist.insertStructAssignmentAsMultiline preference.