Home > Back-end >  Familiar with XE development environment formatting code sets in, please
Familiar with XE development environment formatting code sets in, please

Time:09-25

The following code

Int aa []={1, 2, 3, 4, 5, 6, 76, 7, 8, 98, 9, 90, 0, 888, eight, eight, eight, eight, eight, eight};

However, after the application of automatic formatting

Into the following:
Int aa []=
{1, 2, 3, 4, 5, 6, 76, 7, 8, 98, 9, 90, 0, 888, eight, eight, eight, eight, eight, eight};

I hope to adjust the Settings, can let it remain the same, no word wrap, and at the same time enjoy the automatic formatting of other benefits...

CodePudding user response:

This like VC Alt - F8?

CodePudding user response:

VC development environment are not familiar with, VC6 used short time, I think of XE code editor should be set up, forced to insert a newline, but do not know which one is, test for all not line,

CodePudding user response:

In what format? CnPack? Or AStyle++?

CodePudding user response:

High version of the c + + Builder integration code formatting features, oneself set in the tools option:
Tools - & gt; The Options - & gt; The Formatter - & gt; Line breaks - & gt; Line breaks before the open brace
This option is set the curly braces before a line break, due to the curly braces will affect the function body, suggest to As is, so their writing some code specification to go,
  • Related