Hello,
How to disable this "auto comment" generation?:
thx!

Mailing lists / lazarus / 2012-06
4 messages · 2 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello,
How to disable this "auto comment" generation?:
thx!
2012/6/6 silvioprog :
Hello again. :)
Problem solved:
https://groups.google.com/group/lazarus-br/browse_thread/thread/9172962b07a323ee?hl=pt-BR
thxs!
2012/6/7 silvioprog :
If you don't disable them completely there is a way to make their existence at least a bit more useful: If you remove the empty line between the comment and the class declaration you can add documentation right after the class name (do not remove the class name):
{TSomeThing represents a something and maintains a list of TWhatEver objects. It is responsible for doing foo and bar} TSomeThing = class()
...
end;
Then it will display the contents of the comment in the mouse over hints when you hover the mouse over any occurrence of TSomeThing in your code. Lazarus will not touch the comment anymore or move it away or change it as long as you leave the class name as the first word of the comment.
Apart from that I also don't see any use for these auto generated comments. Especially the ones between the method implementations serve absolutely no useful purpose. For quickly finding the implementations there is either Ctrl+Shift+Up/Down or the code explorer.
2012/6/6 Bernd :
Good tip, thx. :)
Another options would be interesting:
[x] Create public variables for forms.
[x] Create <b>public</b> session.
[x] Create <b>private</b> session.
Then, with: "[ ] Create public variables for forms.", "[ ] Create <b>public</b> session." and "[ ] Create <b>private</b> session.", the result is:
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs;
type
TForm1 = class(TForm)
end;
implementation
{$R *.lfm}
end.A cleaner code. :)