Incorrect formatting of setter method after using class completion
Original Reporter info from Mantis: ggeldenhuys
-
Reporter name: Graeme Geldenhuys
Original Reporter info from Mantis: ggeldenhuys
- Reporter name: Graeme Geldenhuys
Description:
CodeTools doesn't adhere to the formatting rules I specified when I do class completion of a property that has a Setter method.
Example:
TMyClass = class(TObject)
...
public
property Name: string read FName write SetName;
end;
I then press Ctrl+Shift+C
The resulting SetName method looks like this:
--------------------------------------------
procedure TMainForm.SetName(const AValue: string);
begin
if FName=AValue then exit;
FName:=AValue;
end;
--------------------------------------------
In CodeTools I specified spaces between identifiers and the equals (=) sign. Also spaces before and after 'is equals' (:=) which CodeTools didn't insert.
Every time I have to manually fix the formatting to this:
--------------------------------------------
procedure TMainForm.SetName(const AValue: string);
begin
if FName = AValue then
exit;
FName := AValue;
end;
--------------------------------------------
Mantis conversion info:
- Mantis ID: 9599
- OS: Ubuntu Linux
- OS Build: 7.04
- Build: r11831
- Platform: x86
- Version: 0.9.23 (SVN)
- Target version: 1.4