[SOLVED] Autoinsert replaces already typed-in code lazarus / 9-Editor ---------------------------------------------------------------------- Eugene Loza · 2017-02-27 08:20 When "completion box" is active automatically inserted value replaces a word that was in the code after the dot. It's not a critical bug, but often makes it less convenient to edit the code, as usually it replaces the word that should be inserted into the procedure/function/method parameters. E.g. I want to replace MyString := 'abrakadabra'; into Memo1.lines.add(MyString); I start typing Memo1.lines.MyString := 'abrakadabra'; The completion box popps up and I choose "add", and unexpectedly it removes "MyString", and I get: Memo1.lines.Add();:='abrakadabra'; While expected: Memo1.lines.AddMyString := 'abrakadabra'; or at least Memo1.lines.Add()MyString := 'abrakadabra'; Another example: writeln(MyString); //select "writeln(" and replace with memo1.lines. -- and select "add" from completion box Memo1.lines.Add()); //result -> word MyString has disappeared While expected: Memo1.lines.Add(MyString); or Memo1.lines.AddMyString); or at least: Memo1.lines.Add()MyString); Lazarus 1.6.2. FPC 3.0.0. ---------------------------------------------------------------------- Martin_fr · 2017-02-27 16:44 It is not a bug, it is a feature. But really it is whatever you are used too. I am annoyed every time that I use notepad++ (which does not do so). If I have:  Foo.setSome() And I want: Foo.setOther() I expect to be able to place the cursor after the "set"..., type an O, open autocomplete and choose setOther, and it should remove the unwanted "Some". Even worse, if setSome, should change to setHelpSome, if I type the H after set, then N++ offers the full setHelpSome, but choosing this end up with setHelpSomeSome, because the Some was not overwritten. Of course I understand, if you are used to keep the text, then the removal is equally annoying. ---------------------------------------------------------------------- Eugene Loza · 2017-03-03 06:50 Solved! Lazarus forever!!! ---------------------------------------------------------------------- JuhaManninen · 2017-06-08 11:03 Quote from: Rizanharus on June 08, 2017, 12:36:56 pmI want to be the best I have to do it anyway. Rizanharus, are you a bot or a spammer?