Does anyone have a Notepad++ plugin that will generate UUIDs and insert them [closed]
Asked Answered
G

4

17

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?

Ginder answered 30/3, 2010 at 17:56 Comment(0)
M
19

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())
Mendelssohn answered 13/7, 2010 at 6:17 Comment(2)
The Python Script plugin will do the job as well with the same codeSobersided
I made a small adjustment to your script so it will replace your selected text: editor.replaceSel(str(uuid.uuid4()).upper())Smelter
C
14

NppToolBucket does it very nicely, too.

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

Core answered 18/10, 2013 at 19:2 Comment(1)
This should be the accepted answer, methinks! ... it properly does the job (but does need old .net framework installing)Heronry
V
2

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

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

Vaporize answered 30/3, 2010 at 18:0 Comment(0)
I
1

Install the plugin "Random Values"

Usage : Plugins > Random Values > Random guid

Incomprehensible answered 24/7, 2024 at 10:28 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.