JetBrains Rider helps you quickly generate a GUID when you need it.
The simplest way to insert a new random GUID in your code is to use the corresponding live template
Quickly insert a GUID
Type nguid where you want to insert a new GUID. Press Ctrl+Space if the suggestion list doesn't appear automatically:
Press Tab or Enter and choose a format of the generated identifier:
Press Tab or Enter to insert the selected identifier.
Another way is to choose from several GUID formats form a dialog and then pasted in the code. Optionally, you can choose between lowercase and uppercase GUID representations.
Generate a GUID in the selected format
Do one of the following:
Choosefrom the menu.
Press Ctrl+Shift+A, start typing
guidand then pick the corresponding action.
In the dialog that opens, choose how you want to copy the generated GUID and whether it is uppercase.
Optionally, click New GUID to regenerate the number.
Click Copy to copy the GUID in the selected format and close the dialog.