Question

How I can generate a random new GUID inside of the Dephi IDE?

I am using Delphi 2007.

Was it helpful?

Solution

Just press Ctrl + Shift + G

OTHER TIPS

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

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top