How to disable autocomplete code statements in code editor?

后端 未结 3 849
时光说笑
时光说笑 2021-01-19 20:47

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

相关标签:
3条回答
  • 2021-01-19 21:07

    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.

    0 讨论(0)
  • 2021-01-19 21:08

    Since the default location for the live code templates is C:\Program Files (x86)\Embarcadero\Studio\16.0\ObjRepos\en\Code_Templates (for XE8, similar for other editions), you will need to change the permissions on this directory (and its subdirectories) in order to edit or add live templates. Default permissions do not include write permission to this directory.

    0 讨论(0)
  • 2021-01-19 21:30

    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.

    0 讨论(0)
提交回复
热议问题