turn off autocomplete begin...end lazarus / 11-Options ---------------------------------------------------------------------- anonim · 2013-06-03 09:52 Is there a way to turn off autocomplete for begin...end?  "end" is usually inserted at random positions, almost every time I have to find the line where is the not needed "end". ---------------------------------------------------------------------- Bart · 2013-06-03 10:14 Somewhere in Options you can do that. But more important. Can you please provide an example where it goes wrong? And also tell which Lazarus version. This way, if it can be reproduced, it can be fixed. Bart ---------------------------------------------------------------------- BigChimp · 2013-06-03 10:22 Example: if you have an {$IFDEF} block, starting begin before the block will lead to end being inserted after the {$IFDEF}. laz trunk. ---------------------------------------------------------------------- Bart · 2013-06-03 12:48 @BigChimp: I know and this has already been reported. I thought that perhaps TS had other examples (not yet known). Bart ---------------------------------------------------------------------- anonim · 2013-06-03 13:07 Quote from: Bart on June 03, 2013, 12:14:22 pmSomewhere in Options you can do that. But more important. Can you please provide an example where it goes wrong? And also tell which Lazarus version. This way, if it can be reproduced, it can be fixed. Bart I could not find that in the Options. I had a few nested loops and then added one new lines "if (some_var) then begin" pressed Enter and a new "end" appeared somewhere below a few lines in the middle of the column with variable initialization. It would better to turn off begin..end autocomplete as it is sometimes difficult to find the place where new "ends" were inserted. I had to use winmerge to find differences with my previous copy. ---------------------------------------------------------------------- User137 · 2013-06-03 13:15 IDE Options dialog: Editor->Completion and Hints-> uncheck "Add close statement for pascal blocks" Also, this wouldn't be a problem if code is properly indented. For example Code: [Select]if case1 then begin   if case2 then begin     DoSomething;   end; end; end; // Indented on same position as upper line, so you know it is extra. Also if you place cursor on word "begin", it will show rectangle highlight on the matching "end" to it. ---------------------------------------------------------------------- anonim · 2013-06-03 13:38 Thanks! ---------------------------------------------------------------------- Never · 2014-09-25 09:28 i think is the same issue with this one  [http://forum.lazarus.freepascal.org/index.php/topic,25934.msg158410/ topicseen.html#new]