Code history lazarus / 6-IDE-CodeTools ---------------------------------------------------------------------- tr_escape · 2015-10-05 12:22 Hello everyone, All we are typing a lot of lines in our project and some times we adding some codes / functions in hurry. When coding in hurry can be forget our code details like as "when I created this function". Is it possible to keep a history of the code of the project? Delphi has got some options but it saves last 10 builds but I want to see daily changes of project. Like as: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   TForm1 = class(TForm)  private    { private declarations }  public    { public declarations }    function getvals(s:string):string;  // 05.10.2015  --> it can be add when I press ctrl+shift+c  end;...function TForm1.getvals(s: string): string; // 05.10.2015begin  result := '';end;   When I changed that code on an other day: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   TForm1 = class(TForm)  private    { private declarations }  public    { public declarations }    function getvals(s:string;n:integer):string;  // 05.10.2015,06.10.2015 --> it can be add when I press ctrl+shift+c again  end;...function TForm1.getvals(s: string;n:integer): string; // 05.10.2015,,06.10.2015 begin  result := '';end;   It is just an idea about code managing of Lazarus. Have a nice coding. ---------------------------------------------------------------------- balazsszekely · 2015-10-05 12:58 Put your project under version control. ---------------------------------------------------------------------- shobits1 · 2015-10-05 18:30 I thinks he wants, an svn integration in lazarus, which is good idea -I guess- ---------------------------------------------------------------------- Martin_fr · 2015-10-05 20:50 Quote from: tr_escape on October 05, 2015, 02:22:22 pmWhen coding in hurry can be forget our code details like as "when I created this function". Never code in a hurry.... Lazarus also does backups, and you can set hew many and where (explore the options). However since the project is saved for each compile, that does afaik each time create a backup. As already suggested version control. (git/svn). Really good, but you must remember to commit regularly. Other options. Define a "code template" (option menu) to create the new function. (and a 2nd for procedure) Code: [Select]function $param(Name)($param( )): $param(Type); // $Date() you can assign it to enter the word(part) func, then hit ctrl-j Your new function should have a date. You can play with editor macros/pascalscript too, but that is a long shot. You can intercept the ctrl-shift-c, by reassigning it to a macro, and then the macro calls the original function (and does whatever else)