JetBrains Rider 2024.1 Help

Generate GUIDs

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 nguid.

Quickly insert a GUID

  1. Type nguid where you want to insert a new GUID. Press Ctrl+Space if the suggestion list doesn't appear automatically:

    JetBrains Rider: Inset GUID via live template
  2. Press Tab or Enter and choose a format of the generated identifier:

    JetBrains Rider: Inset GUID via live template
  3. 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

  1. Do one of the following:

    • Choose Tools | Generate GUID… from the menu.

    • Press Ctrl+Shift+A, start typing guid and then pick the corresponding action.

  2. In the dialog that opens, choose how you want to copy the generated GUID and whether it is uppercase.

    JetBrains Rider: 'Generate GUID' dialog
  3. Optionally, click New GUID to regenerate the number.

  4. Click Copy to copy the GUID in the selected format and close the dialog.

Last modified: 11 February 2024