Recent

Author Topic: IDE tabs and spaces, auto-indenting  (Read 2001 times)

OC DelGuy

  • Full Member
  • ***
  • Posts: 197
Re: IDE tabs and spaces, auto-indenting
« Reply #15 on: March 22, 2025, 05:30:49 pm »
There is one setting in the "Codetools" section. If that is on, then you get "smart", i.e. "best guess" indentation.
Where is the "Codetools" section?  8) <-- Blind Guy

However, if you want automatic extra indent added, when pressing enter after a "begin" then you need the "smart" codetools version. (and it ignores most of the editor settings).
Where is the "smart" codetools version?  8) <-- Blind Guy
Free Pascal Lazarus Version #: 2.2.4
Date: 24 SEP 2022
FPC Version: 3.2.2
Revision: Lazarus_2_2_4
x86_64-win64-win32/win64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11030
  • Debugger - SynEdit - and more
    • wiki
Re: IDE tabs and spaces, auto-indenting
« Reply #16 on: March 22, 2025, 06:58:51 pm »
Where is the "Codetools" section?  8) <-- Blind Guy

If your signature is up-to-date (Laz 2.2.4), open the options from the main menu then look at the Tree on the left.  (With that old Lazarus it is only there if you go via main menu)

Otherwise, it is in that tree, even if you open via editor context menu.
Or follow the link, on the "tab and indent" page.

OC DelGuy

  • Full Member
  • ***
  • Posts: 197
Re: IDE tabs and spaces, auto-indenting
« Reply #17 on: March 22, 2025, 09:51:53 pm »
Oh, I see it now!  :D
Thanks Martin!


If your signature is up-to-date (Laz 2.2.4).
Yes, quite up-to-date...
Free Pascal Lazarus Version #: 2.2.4
Date: 24 SEP 2022
FPC Version: 3.2.2
Revision: Lazarus_2_2_4
x86_64-win64-win32/win64

n7800

  • Sr. Member
  • ****
  • Posts: 284
Re: IDE tabs and spaces, auto-indenting
« Reply #18 on: March 23, 2025, 02:42:52 am »
Ideally, we could have an switch, to toggle between "simple" and "advanced" options. Then we could have a subset in the "simple" settings.

I agree. Most users just need one option that sets the tab size. Roughly speaking, one "SpinEdit", the configuration of which automatically configures all the "complex" options.

And getting a good idea of what different people use, so that subset can be made at least somewhat reasonable.

We can take the behavior of other IDEs and text editors as a basis.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11030
  • Debugger - SynEdit - and more
    • wiki
Re: IDE tabs and spaces, auto-indenting
« Reply #19 on: March 24, 2025, 09:17:07 pm »
I did some changes to the layout and wording.

Also have the wording for "amount of tabs" change, when using "tabs to spaces".


 

TinyPortal © 2005-2018