问题
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?
回答1:
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())
回答2:
NppToolBucket does it very nicely, too.
http://sourceforge.net/p/npp-plugins/discussion/667712/thread/71f5e965
回答3:
(AHK) Universally Unique Identifier (UUID/GUID) Generator
It's not spectacular(has its flaws), but it looks to get the job done.
来源:https://stackoverflow.com/questions/2547416/does-anyone-have-a-notepad-plugin-that-will-generate-uuids-and-insert-them