是否有人有一个Notepad ++插件会生成UUID并将其插入 [英] Does anyone have a Notepad++ plugin that will generate UUIDs and insert them

查看:149
本文介绍了是否有人有一个Notepad ++插件会生成UUID并将其插入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常需要将UUID插入到我在Notepad ++中编辑的文件中.没有人有一个宏或添加这样做.还是自动热键脚本?

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?

推荐答案

插件中心,然后配置为运行以下简单的Python脚本.

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

这篇关于是否有人有一个Notepad ++插件会生成UUID并将其插入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆