Salvador
Salvador

Reputation: 16482

Generating a new Random GUID in the Delphi IDE

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

I am using Delphi 2007.

Upvotes: 17

Views: 14068

Answers (4)

Robert Kovac
Robert Kovac

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

casiosmu
casiosmu

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

RRUZ
RRUZ

Reputation: 136401

Just press Ctrl + Shift + G

Upvotes: 41

Deltics
Deltics

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

Related Questions