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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay