有没有人有一个 Notepad++ 插件可以生成 UUID 并插入它们 [英] Does anyone have a Notepad++ plugin that will generate UUIDs and insert them

查看:34
本文介绍了有没有人有一个 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?

推荐答案

Plugin Central,然后配置运行下面的简单 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天全站免登陆