A little wish for a longtime user of PlSqlDeveloper

Paulo_BR

Member
Hi folks!

I'm a longtime user (since 2006) of the Developer.
It's fine and "sensacional"!
But I would like to know if it is possible to include, if not already, a little trick that even today I do not know how.

How include date and time in comments?
Let's say how I do it today ... open notepad, F5, ctrl+A, ctrl+C, back to Developer and ctrl+V.

The final resul would be like:
-- here are the comments for alterations
-- by Paulo at 10:55 10/05/2011

Are there a way to do it at any moment simple pressing any key?
Need these trick implementation on the Developer?

Great job folks!

Abr.,
Paulo
 
Hi Paulo,
when you create a new package specification via a PSD template it automatically adds a date/timestamp to the created code, i.e.
-- Created : 10 Mai 2011 18:11:16

This is defined in the \Template\Program units\Package specification.tpl as:
-- Created : $DATE $TIME

Maybe this template functionality, if necessary in combination with a macro, could be used as a way to get what you want.
I don't know in what sort of PSD window you want your date/timestamps to be added. Existing code or new code? Maybe you can give us more details?

 
Another idea might be to write a little program which when called creates a current date/timestamp and copies it to the clipboard. You could then use PSDs Tools - Configure Tools functionality to call this external program with a keyboard shortcut and then paste the date/timestamp via ctrl-v again whereever you want again.
A DOS-batch program with just the following line creates the date/timestamp: echo %DATE% %TIME%
The rest is now up to you :cool:
 
Last edited:
Bernhard S said:
Hi Paulo,
when you create a new package specification via a PSD template it automatically adds a date/timestamp to the created code, i.e.
-- Created : 10 Mai 2011 18:11:16

This is defined in the \Template\Program units\Package specification.tpl as:
-- Created : $DATE $TIME

Maybe this template functionality, if necessary in combination with a macro, could be used as a way to get what you want.
I don't know in what sort of PSD window you want your date/timestamps to be added. Existing code or new code? Maybe you can give us more details?

Thanks, Bernhard for your reply!
I usually include the date and time when I make changes to programs code at the point who I made the changes. So in the future you can see who has made what rsrsrs
What Im searching for is a trick for simple hit a FKey (like in notepad or anything so) to include, at the cursor point, the date/time info.

It seems a simple trick that I unaware on PlSqlDev.

And your idea on the template (.tpl) worked fine!
Thanks!
Are that a way to associate it with a FKey?

Abr.,
Paulo
 
Paulo,

You can go to Tools-->Preferences-->User Interface-->Editor and include a line like this in your autoreplace file:

cdate = \.tpl

Regards,
Gustavo
 
Gustavo said:
Paulo,

You can go to Tools-->Preferences-->User Interface-->Editor and include a line like this in your autoreplace file:

cdate = \.tpl

Regards,
Gustavo

Gustavo,

it worked!

Obrigado!

Abr.,
Paulo
 
Back
Top