Jump to content
luciano_f

Is there a way for the formatter to do this?

Recommended Posts

 

Delphi's native formatter can't do this type of formatting, can Gexpert do it ?

 

Example breaks with 32

 

If Table1.fieldbyName('campo').Asstring = varcampo then

 

With the formatting it looks like this

 

If Table1.fieldbyName('campo').
Asstring = varcampo then

 

But I would like training to stay like this
I would only break when there is a space

 

If Table1.fieldbyName('campo').Asstring
= varcampo then

Share this post


Link to post

Can you show the complete code block with real indentation and your Line Break formatter options? 

Share this post


Link to post
52 minutes ago, luciano_f said:

Can I create my own styles?

Of course you can - just write it down. Note, that a style guide is not applied automatically. The developers must adhere to it when they write code.

 

54 minutes ago, luciano_f said:

Is it possible to do what I want?

As we don't know what your are doing in the moment, we cannot say what you need to change to get the desired outcome. Therefore my request above.

Share this post


Link to post
1 minute ago, Uwe Raabe said:

Of course you can - just write it down. Note, that a style guide is not applied automatically. The developers must adhere to it when they write code.

 

As we don't know what your are doing in the moment, we cannot say what you need to change to get the desired outcome. Therefore my request above.

 

What I want is for the break to only happen when there is a space

 

Example breaks with 32

If Table1.fieldbyName('campo').Asstring = varcampo then

After formatting it would be

 

If Table1.fieldbyName('campo').Asstring
= varcampo then

 

Share this post


Link to post
4 minutes ago, dummzeuch said:

I don't think that's possible with the currently available options.


Could have an option to work together with "Wrap Long Lines"
so that breaking only happens when there is space

 

it would be very good.
 

Share this post


Link to post

Seems you are still refusing to give the formatter settings you are using. How do you expect being helped if you don't give us the requested information?

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
×