Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-10

Code Template Macros

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lee Jenkins

Hi all,

Currently there is the pipe character (|) that indicates where the carat should be placed after a Code Template is finished rendering itself in the editor. Is there currently a symbol to use to indicate that a tab should be inserted into the generated code?

Delphi

TClass = class(TObject)
public
~procedure SomeProcedure;
end;

The character ("~" in this case) indicates that a tab should be placed in it's stead according to user preferences for tab-to-spaces setting in the IDE. I have the IDE set so that a tab produces 2 spaces for indentation in the IDE settings and would produce this code:

TClass = class(TObject)
public
   procedure SomeProcedure;
end;

Thanks!

Warm Regards, Lee

Reply by email

Mattias Gärtner
to Lee Jenkins

Zitat von Lee Jenkins :

Show quoted text 27 lines
Hi all, Currently there is the pipe character (|) that indicates where the carat should be placed after a Code Template is finished rendering itself in the editor. Is there currently a symbol to use to indicate that a tab should be inserted into the generated code? Delphi TClass = class(TObject) public ~procedure SomeProcedure; end; The character ("~" in this case) indicates that a tab should be placed in it's stead according to user preferences for tab-to-spaces setting in the IDE. I have the IDE set so that a tab produces 2 spaces for indentation in the IDE settings and would produce this code: TClass = class(TObject) public procedure SomeProcedure; end; Thanks!

Please create a feature request in the bug tracker.

Mattias

Reply by email

Lee Jenkins
to Mattias Gärtner
Mattias G?rtner wrote 33 lines
Zitat von Lee Jenkins : > > Hi all, > > Currently there is the pipe character (|) that indicates where the carat > should be placed after a Code Template is finished rendering itself in the > editor. Is there currently a symbol to use to indicate that a tab should be > inserted into the generated code? > > Delphi > > TClass = class(TObject) > public > ~procedure SomeProcedure; > end; > > The character ("~" in this case) indicates that a tab should be placed in it's > stead according to user preferences for tab-to-spaces setting in the IDE. I > have the IDE set so that a tab produces 2 spaces for indentation in the IDE > settings and would produce this code: > > TClass = class(TObject) > public > procedure SomeProcedure; > end; > > Thanks! Please create a feature request in the bug tracker. Mattias

Done. http://mantis.freepascal.org/view.php?id=17632

Thanks,

Warm Regards, Lee

Reply by email