Forum > Editor
Tab width trouble
(1/1)
duzenko:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40462
Can anyone please explain me how to get the tab to be three-spaces wide on new lines?
I.e. when I type on the new line
"type"
and press Enter
How do I get three spaces for my indent, rather than two?
https://gitlab.com/freepascal.org/lazarus/lazarus/uploads/f022f5c6fdcbb19b7050bc5ae3dd9918/image.png
I have 2 spaces consistently here with all possible options on and off
Josh:
Tools->Option->Editor->General->Tab and Indent
Note the drop down does not have 3 in its list, but you can enter the value in its drop down
duzenko:
--- Quote from: Josh on August 26, 2023, 10:31:26 am ---Tools->Option->Editor->General->Tab and Indent
Note the drop down does not have 3 in its list, but you can enter the value in its drop down
--- End quote ---
Sorry, I tried the setup from your screenshot to the best but it's still two spaces for me
Can you confirm that you actually get three spaces with it?
duzenko:
The simplest case
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---program project1;beginend.If I press enter at the end of "program project1;" I get no indent at all
If I press enter at the end of "begin" I get two spaces - no matter what I set in options
To compare, in Delphi 11 I get no indent in both cases
Navigation
[0] Message Index