Restrict code templates expansion to a scope
Original Reporter info from Mantis: leledumbo_cool@yahoo.co.id @leledumbo
-
Reporter name: Mario Ray Mahardhika
Original Reporter info from Mantis: leledumbo_cool@yahoo.co.id @leledumbo
- Reporter name: Mario Ray Mahardhika
Description:
I love Lazarus' code templates feature, for instance this template:
[function | function declaration]
$(AttributesStart)
RemoveChar=true
EnableMakros=true
AutoOnSpace=true
$(AttributesEnd)
function param(Name)(
param( )): $param(Type);
begin
|
end;
The template is expanded when I press space after "function" word. This is helpful for single source program, but things get complicated when I start using units, declaring methods for classes, etc. It's still helpful in implementation section, but not in interface.
So, I request that Lazarus adds another checkboxes to restrict code templates expansion to a scope, such as interface section, implementation section, inside strings, inside comments, etc.
Mantis conversion info:
- Mantis ID: 17195
- Version: 0.9.29 (SVN)