Jump to content
Sign in to follow this  
Sonjli

Format function params

Recommended Posts

Hi,

Embarcadero will probably no more support the .net formatter, so the GExperts one is the best on the market. I am studying it and looks very good, with some small lacks.

 

Method params

Is it possible for the formatter to format method parameters one per line? The Delphi default formatter can do this.

Example:

// not formatted
procedure myproc(const a: string; b: integer);

// formatted one per line
procedure myproc(
  const a: string; 
  b: integer);

Blank lines

Is it possible to remove these lines?

// not formatted
procedure myproc(const a: string; b: integer)

var
  a: integer;
begin

end;

// formatted, the blank line remains
procedure myproc(const a: string; b: integer)
!!! <----
var
  a: integer;
begin

end;

 

Thanks

 

(more to come... :classic_tongue:)

Share this post


Link to post

None of these features have been implemented. Feel free to submit a feature request on sourcefoge (makt it one for each feature).

Feature requests for the formatter should include two unit files: An input and the desired output. They both should compile.

But don't hold your breath for an implementation.

 

Hm, actually, I think removing that blank line should have worked. Maybe it's a bug.

Edited by dummzeuch
  • Thanks 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×