Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-10

How to disable specific code generation feature

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I'm getting increasingly frustrated with Lazarus IDE again. It is generating rubbish code, especially since I use TAB character indentation, and not 2-Space indentation.

Anyway, how do I disable the code completion (or whatever you call it), after I press the ENTER key after I typed "begin".

As you can see from the attached screenshot....

1) The "end;" was generated at the completely wrong indentation level. This happens the whole time, so I would like to disable this code generation thingy, but where???? I looked everywhere in the editor settings and Code Templates. What is it called, and where do I disable it?

2) The "finally" code was correctly indented, but after Lazarus inserted the "end;" code it decided for good measure to screw with my surrounding code too! Arghhhhhh!

The joys of editors trying to be too clever!

I assume if I can disable (1), then (2) should not happen any more.

Any tips on how to disable (1)?

Regards,
Graeme.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot1.png
Type: image/png
Size: 8064 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121001/d301458a/attachment.png>

Reply by email

Martin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
1) The "end;" was generated at the completely wrong indentation level. This happens the whole time, so I would like to disable this code generation thingy, but where???? I looked everywhere in the editor settings and Code Templates. What is it called, and where do I disable it? Any tips on how to disable (1)?

Options / Codetools / first tab/node

anything todo with indent => disable.

---
If you are on the editor settings, the "smart indent" link gets you there

Reply by email

Martin
to Martin
Martin wrote 12 lines
On 01/10/2012 16:37, Graeme Geldenhuys wrote: > 1) The "end;" was generated at the completely wrong indentation level. > This happens the whole time, so I would like to disable this code > generation thingy, but where???? I looked everywhere in the editor > settings and Code Templates. What is it called, and where do I > disable it? > > > Any tips on how to disable (1)? > Options / Codetools / first tab/node

or read this thread
http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-July/065208.html

Reply by email