Author Topic: Enhance the Beautifier (more like Eclipse)  (Read 1757 times)

Rick P.

  • Community Member
  • Posts: 6
  • Hero Points: 0
Enhance the Beautifier (more like Eclipse)
« on: October 04, 2010, 04:23:27 PM »
Enhance the Beautifier to give you much more control (ala Eclipse).  Current formatting capabilities are very basic and in some languages (HTML, C#) they are buggy or limited.

benem

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: Enhance the Beautifier (more like Eclipse)
« Reply #1 on: February 01, 2012, 10:21:02 AM »
Hi

I see this feature request on an old topic but not here (sorry if I missed but there are 29 pages at this time).

It is about namespace indenting. Would be useful to have an option to don't indent code inside namespace during normal typing and with beautifier. The same for extern "C".

Another useful option is to apply to the namespace braces the same behavior of "if" and "while": after typed a {, it is possible to include inside the braces, the underlying lines using the arrows keys.

I'm speaking about C/C++ and C#. I don't know if there are other language that could benefit from them.


Liberty

  • Community Member
  • Posts: 11
  • Hero Points: 0
Re: Enhance the Beautifier (more like Eclipse)
« Reply #2 on: September 13, 2012, 03:56:25 PM »
Currently the beautifier only supports two braces styles,
if( isValid( token ) ) and
if(isValid(token))

I would love to see support for
if( isValid( token))
added.

Teknomancer

  • Community Member
  • Posts: 28
  • Hero Points: 1
Re: Enhance the Beautifier (more like Eclipse)
« Reply #3 on: October 11, 2012, 11:34:50 AM »
The beautifier does NOT support this syntax
Code: [Select]
do
{
...
} while (cond);

It does not support having the while in the same line as the "}" with a space following "}". Could this please be added?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
while on same line as brace
« Reply #4 on: October 15, 2012, 02:07:46 PM »
That's in v17.  In the profile editor, it's under Newlines -> Other Control Statements -> "} while on same line".  Definitely open a defect if it's not working for you.