How tell auto-completion to insert spaces around := lazarus / 11-Options ---------------------------------------------------------------------- ssawgift · 2021-06-01 11:06 Is there an existing option that tell auto-completion to insert spaces around :=? For example, when I auto-complete the following line: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i self.CaptionI always get: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i self.Caption:= When I format using Jedi, it automatically inserts one space before and after :=. ---------------------------------------------------------------------- Zvoni · 2021-06-01 11:11 In IDE --> Tools - Options - Codetools - Blanks (German Lazarus here, so i'm translating on the Fly) Check both "Symbol" in "Insert blank before" and "Insert blank after" Nota Bene: That inserts a blank before/after each Symbol You can see it in the sample-window ---------------------------------------------------------------------- ssawgift · 2021-06-01 12:09 Quote from: Zvoni on June 01, 2021, 01:11:53 pmIn IDE --> Tools - Options - Codetools - Blanks (German Lazarus here, so i'm translating on the Fly) Check both "Symbol" in "Insert blank before" and "Insert blank after" Nota Bene: That inserts a blank before/after each Symbol You can see it in the sample-window Thanks for the tip. But the above option only affects Jedi formatting... ---------------------------------------------------------------------- lucamar · 2021-06-01 12:58 Quote from: ssawgift on June 01, 2021, 02:09:48 pmThanks for the tip. But the above option only affects Jedi formatting... In fact they affect only CodeTools formatting (which includes auto- completion); note that there's a specific section for JCF Format Settings above it. ---------------------------------------------------------------------- ssawgift · 2021-06-01 13:12 Quote from: lucamar on June 01, 2021, 02:58:35 pmIn fact they affect only CodeTools formatting (which includes auto-completion); note that there's a specific section for JCF Format Settings above it. Okay, that means auto-completion should insert a space before :=, but it does not. The only way to achieve what I want is to hit SPACEBAR (instead of ENTER) when the correct symbol is highlighted in completion list. ---------------------------------------------------------------------- lucamar · 2021-06-01 13:24 Strange; it works as it should here. For example, if you have: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  Something: Integer;begin |end;an use autocompletion to insert "Something" at the caret's position, it adds the ":=" with the proper spaces around. But, of course, only if you have "Add assignment operator" checked in "Identifier completion" (right below "Space" in CodeTools options). ---------------------------------------------------------------------- ssawgift · 2021-06-01 14:53 After some tries, it turned out that the codetools->Space setting works for auto-completion. I did not check two checkboxes for 'Symbol'.