News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Insertion of date/time stamp into editor

Started by BCCISProf, September 28, 2006, 06:47:49 PM

Previous topic - Next topic

BCCISProf

Is there any way of inserting the current date and time stamp in the editor?

Thank you.

David Perfors

No, unless there is some hidden shortcut that I don't know....
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

sethjackson

#2
No I don't think there is. If you use SVN you can do this though......

Code (cpp) Select

/*
* $Date$
* $Revision$
* $Author$
* $HeadURL$
*/


http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html#svn.advanced.props.special.keywords

mandrav

Check tomorrow's nightly (I don't think this can make it in tonight's) ;).
Here are the newly added editor abbreviations:

tday = 20060928
tdayu = 20060928
today = 2006-09-28
todayu = 2006-09-28
now = 2006-09-28-20.48
nowl = 2006-09-28-20.48.58
nowu = 2006-09-28-17.48
nowlu = 2006-09-28-17.48.58
wdu = Thursday

(these with the 'u' suffix, refer to UTC times).

To use any of them just type the abbreviation (e.g. "nowl") in the editor and press Ctrl-J.
Be patient!
This bug will be fixed soon...

BCCISProf

Wow! Thats what I call service. Thanks so much!

If you have a moment, can you take a look at the questions in my previous post

http://forums.next.codeblocks.org/index.php?topic=4058.0

Thanks

jpaterso

Ah wonderful!!
I asked for this a while ago, and now it is here  :D

Thanks very much, C::B team!

Joe.