Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does anyone have a Notepad++ plugin that will generate UUIDs and insert them

I Often need UUIDs inserted into files that I'm editing in Notepad++. Does anyone have a macro or add in that does this. Or an autohotkey script?

like image 228
Charley Rathkopf Avatar asked Mar 30 '10 17:03

Charley Rathkopf


3 Answers

Install the GhNppExec plugin from Plugin Central, then configure to run the simple Python script below.

Use the shortcut mapper to assign a key combination to the plugin command.

import uuid
import sys

# make a random UUID
sys.stdout.write(str(uuid.uuid4()).upper())
like image 139
wallflower Avatar answered Nov 09 '22 21:11

wallflower


NppToolBucket does it very nicely, too.

http://sourceforge.net/p/npp-plugins/discussion/667712/thread/71f5e965

like image 34
Johnny5 Avatar answered Nov 09 '22 21:11

Johnny5


(AHK) Universally Unique Identifier (UUID/GUID) Generator

It's not spectacular(has its flaws), but it looks to get the job done.

like image 34
hometoast Avatar answered Nov 09 '22 22:11

hometoast