在 Delphi IDE 中生成新的随机 GUID
如何在 Dephi IDE 中生成随机的新 GUID?
我使用的是Delphi 2007。
How I can generate a random new GUID inside of the Dephi IDE?
I am using Delphi 2007.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
只需按 Ctrl + Shift + G
Just press Ctrl + Shift + G
Ctrl+Shift+G 将在编辑器中的当前位置放置一个新的 GUID。
它被格式化为用作接口 IID,即带有方括号 - [] - ,但是一旦您在文本编辑器中获得了 GUID,您就可以用它做任何您想做的事情 - 将其复制/剪切到剪贴板等
Ctrl+Shift+G will place a new GUID at the current position in the editor.
It's formatted for use as an interface IID, i.e. with enclosing square brackets - [] - , but once you've got the GUID in the text editor you can do whatever you want with it - Copy/Cut it to the clipboard etc
我想知道为什么这对我不起作用,但现在我发现它取决于 Delphi-Options 中所选的键盘布局(
Options
->Editor-Options< /code>->
键盘
)。使用
classic IDE
布局,实际上是 Ctrl+Shift+G,但我通常使用VisualStudio-Emulation
,它是 Ctrl+Alt+G 。I had wondered why this didn't work for me, but now I found out that it depends on the selected keyboard-layout in the Delphi-Options (
Options
->Editor-Options
->Keyboard
).With the
classic IDE
layout it really is Ctrl+Shift+G, but I usually use theVisualStudio-Emulation
and there it is Ctrl+Alt+G instead.Jedi VCS 中 Get 模块的默认快捷键(如果今天仍有人使用 VCS)是相同的,必须在 Jedi VCS 设置中清除。否则 GUID 快捷方式将不起作用。
Default key shortcut for Get module in Jedi VCS (if anyone still use VCS today) is the same and must be cleared in Jedi VCS Settings. Otherwise GUID shortcut won't work.