How to disable autocomplete code statements in code editor?

Please_Dont_Bully_Me_SO_Lords picture Please_Dont_Bully_Me_SO_Lords · May 24, 2013 · Viewed 9.8k times · Source

Every time I type if and press the space bar, Delphi completes it with if True then and a new empty line above.

Is there a way to remove this "autocomplete" feature or at least edit it to not create the new line?

Answer

David Heffernan picture David Heffernan · May 24, 2013

From the Tools | Options | Editor Options | Code Insight menu, deselect the Auto complete check box under Code template completion.

enter image description here

Once you disable template auto complete then you need to manually invoke the template if you want it. Do that with CTRL+J.