NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Insert Timestamp


Joined: 23 Aug 2007
Posts: 16
Reply with quote
It would be nice if I could insert a timestamp
in the code - that's handy to indicate a method
was changed.

Alt+D --> 2008-01-30 19:11:23

Thank you...
View user's profileFind all posts by leopoltSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7893
Reply with quote
why not to use source control systems like svn? it would track all the changes you do to the code with date/time stamps and complete snapshots.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 23 Aug 2007
Posts: 16
Reply with quote
I consider source control *overkill* for small/medium sized projects.
Insert date is just nice-to-have which I have found very usefull while using other editors.
View user's profileFind all posts by leopoltSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Quote:
I consider source control *overkill* for small/medium sized projects.

I used to think exactly like you about that. Practice and experience has changed my mind however. Subversion only adds minor overhead and the advantages compared to not having it are endless. Especially having all previous versions of your source available etc...
I create a separate trunk for each large project, but all my smaller projects go into a subdirectory of a single trunk. Adding a new project is 2 seconds work.

That being said, more extended possibilities for the code templates is something I would like myself. It would be nice if a set of variables could be implemented.
Like for example %selected% (which would represent the current selection) and your %timestamp% or something. You could then create a code template just containing %timestamp% for example.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 23 Aug 2007
Posts: 16
Reply with quote
Hmm...ok then Wink
I haven't used Subversion yet but thanks to Blizz I'll give it a try.
View user's profileFind all posts by leopoltSend private message
Still needed


Joined: 03 Jun 2008
Posts: 75
Location: Bavaria, Germany
Reply with quote
I´m picking this up because that´s exactly what i need too.
I am using CVS system, but when adding comments to some piece of code, it would be VERY helpful to just press a keyboard shortcut to insert a human readable timestamp, just like you can insert GUID right now with Editor-Shortcuts.

please consider this for your next release Rolling Eyes

thx in advance
View user's profileFind all posts by bitseekerSend private message
Me Too


Joined: 03 Nov 2007
Posts: 42
Reply with quote
I would like to see this as well.

I use Subversion on one project, but I keep plenty of notes inside the code, and I currently type in the date and time by hand (after looking it up!)

Yes, the changes are in Subversion, but this keeps inline comments in a more useful state.

_________________
PC
View user's profileFind all posts by computergeniusSend private messageVisit poster's website
Insert Timestamp
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic