DEV Community

Soysal Tan
Soysal Tan

Posted on

#PHPStorm tip: Create UUID value easily

  1. Create new 'Live Template' from File->Settings
  2. Set the template text to $VALUE$
  3. Click "Edit Variables"
  4. Set the VALUE to groovyScript("java.util.UUID.randomUUID() as String")

Now type uuid and press tab, and get a UUID generated

How to

Top comments (0)