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

前端 未结 3 1653
没有蜡笔的小新
没有蜡笔的小新 2021-01-01 18:28

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?

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-01 19:15

    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())
    

提交回复
热议问题