Search code examples
intellij-ideauuid

Generate a UUID as hex-string inserted into the code editor in IntelliJ


I like to attach a hard-coded hex string representing a UUID value in my error messages and logging calls.

Is there a way for IntelliJ to generate a UUID (Version 4, all random) and insert at the cursor in the code editor?


Solution

  • UUID Generator plug-in should help.

    Choose Preferences/Settings > Plugins > Browse repositories… (button). Enter UUID in the search-field to see a list of plugins that you can install.