Reputation: 16482
How I can generate a random new GUID inside of the Dephi IDE?
I am using Delphi 2007.
Upvotes: 17
Views: 14068
Reputation: 2308
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.
Upvotes: 0
Reputation: 827
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 the VisualStudio-Emulation
and there it is Ctrl+Alt+G instead.
Upvotes: 3
Reputation: 23036
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
Upvotes: 11