How I can generate a random new GUID inside of the Dephi IDE?
I am using Delphi 2007.
Just press Ctrl + Shift + G
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With