Author Topic: Adaptive Formatting set up to match Beautifier (Align on parens)?  (Read 3329 times)

Kris

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
I'm trying to set up my adaptive formatting to match the beautifier for my C code.  Right now I'm having trouble getting the alignment associated with broken lines to work with adaptive formatting.  When I do the beautifier I get code that looks like this:

Code: [Select]
memset(&asdf,
       0,
       sizeof(asdf));

But when I am actually typing in the code and hit enter after the comma, it looks like this:

Code: [Select]
memset(&asdf,
   0,
   sizeof(asdf));

How do I set up my Slickedit options so they both look like the top example?
« Last Edit: December 16, 2013, 09:47:02 PM by Kris »

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Adaptive Formatting set up to match Beautifier (Align on parens)?
« Reply #1 on: December 17, 2013, 03:03:32 PM »
It depends on what version you're on.  For >= v17, the setting from the beautifier profile is used to control that behavior.  (In the profile editor, Indent -> Continuation Indent, set function parameter alignment to "Align On Parens")

For <= v16, in the Options dialog under Languages -> Application Languages -> C/C++ -> Formatting there should be a "Use continuation indent on function parameters" that you can uncheck to get that behavior.

Kris

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
Re: Adaptive Formatting set up to match Beautifier (Align on parens)?
« Reply #2 on: December 18, 2013, 05:13:00 PM »
I'm on one of the earlier versions.  That did the trick.  Thanks for the help!.