default integer type for codetools lazarus / 9-Editor ---------------------------------------------------------------------- BeniBela · 2020-11-19 13:28 When you write something like 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 i := 0 or 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 for i := 1 to length(something) do  and press ctrl+shift+C, Lazarus adds 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  i: Integer;which is often wrong on 64-bit system. How do you set it to always complete it to: 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  i: SizeInt; ---------------------------------------------------------------------- lucamar · 2020-11-19 13:43 I don't think you can. After analizing the line Lazarus always "completes" to the closest, more generic type it can find which in this case is Integer, just as with strings it always completes to generic String rather that using Short- or AnsiString. ---------------------------------------------------------------------- BeniBela · 2020-11-22 11:03 But integer is  neither the closest (that would be byte or shortint) nor the most generic (which would be sizeint) Even if there is no config option, there should be at least a line in the code where it can be patched ---------------------------------------------------------------------- lucamar · 2020-11-22 12:40 Quote from: BeniBela on November 22, 2020, 12:03:13 pmBut integer is  neither the closest (that would be byte or shortint) nor the most generic (which would be sizeint) Even if there is no config option, there should be at least a line in the code where it can be patched Maybe "closest" was not the right term; I meant "basest", as in "the more general type". For reals, for example, it completes "i := 0.8" by adding "i: Extended". But I might be completely wrong. If you want to know exactly what it's doing your best bet is to dive into the sources and, maybe, build a patch to allow it to be configurable.