Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable autocomplete code statements in code editor?

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?

like image 375
NaN Avatar asked Dec 05 '22 10:12

NaN


2 Answers

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.

like image 107
David Heffernan Avatar answered Jan 11 '23 01:01

David Heffernan


That's called a live template, and you can edit the list of live templates in the template window, from the View menu.

Find the template you don't like, select it, and click the "remove template code" button.

like image 38
Rob Kennedy Avatar answered Jan 11 '23 00:01

Rob Kennedy