Indent options are split in Editor & Codetool Options: Hard to understand / Not reachable via popup menu
Original Reporter info from Mantis: ChrisF
-
Reporter name:
Original Reporter info from Mantis: ChrisF
- Reporter name:
Description:
The "new" Auto indent option is not available when the IDE Options are called by right-clicking into the code editor of Lazarus and selecting the "Options" menu.
Furthermore, the only documentation for this "new" Auto indent option doesn't mention how it's possible to modify it (i.e. when coming via right-clicking into the code editor).
Steps to reproduce:
-Start a new project with Lazarus/FPC,
-Right-click into the source editor (i.e. unit1.pas) and select "Option" in the contextual menu,
-Go to "Editor"->"General" (i.e. left-tree of the configuration window),
-Click to the "(Setup smart ident)" link, in the "Indentations and Tabulations" part (just below the "Automatic indentation" checkbox),
-Nothing happens; you're not transfered in the corresponding part of the IDE Options ("Code Tools"->"General"), probably because the corresponding part of the left-tree is "masked" (there is only a small part of the left-tree displayed, when IDE Options are called via right-clicking into the code editor).
Additional information:
1/ This problem doesn't occur when IDE options are called via the general menu of the IDE: "Tools"->"Options"->"Editor"->"General"
2/ This makes all the auto tabs configuration quite confusing, especially for a new user of Lazarus (like me). For a user coming from Delphi, "tabulations" behavior can be modified via right-clicking into the code editor.
But, within Lazarus "tabulations" behavior are now located into 2 different parts of the IDE configuration:
-one in "Tools"->"Options"->"Editor"->"General"
-and one another in "Tools"->"Options"->"Code Tools"->"General"
As the second part is inaccessible when right-clicking into the code editor, this really makes the "Auto indent" option quite confusing (as the "new" Auto indent option is activated by default with a new installation of Lazarus/FPC).
The "Automatic indentation" checkbox and combobox are quite accessible into the IDE Option window, but when changing anything for them, there is no changes at all for the concerned "tabulations" behavior; as the "new" Auto indent option are replacing them by default.
3/ Would be it possible to :
-allow the call to the "(Setup smart ident)" link, when coming from a right-clicking into the code editor ?
-if not possible or difficult, to add a comment instead (for instance a label like: 'See "Tools"->"Options"->"Code Tools"->"General" for more options concerning the Automatic indentation)', besides the "(Setup smart ident)" link ?
-if not, any other possibility to help the user for fully configuring the "Automatic indentation" ?
-to "grey" both the "Automatic indentation" checkbox and combobox, when the "new" Auto indent option is activated ?
Concerning the part of the on-line documentation ( http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options_General#Indent_and_Tabs ), would it possible to add an indication concerning this "new" Auto indent option, especially where to find any documentation for it? There is an "Auto indent" and "Auto Indent (mode dropdown)" chapters, but none of them are explaining how it is possible to switch between them. A link to the corresponding part of the documentation ( http://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Options#Indentation ) would be quite great, IMHO.
4/ BTW, the "(Setup smart ident)" link text is not translated, at least not for the French configuration (it's literally "(Setup smart ident)"). Is it an omission, or a voluntary choice ?
Mantis conversion info:
- Mantis ID: 24043
- OS: Windows XP 32 Bits
- OS Build: XP SP3
- Version: 1.0.6
- Monitored by: » jpfle (Jean-Philippe Fleury), » @martin_frb (Martin Friebe)