Author Topic: Alias expansion inserting space before open/close parenthesis (v26.0.3.1 64-bit  (Read 133 times)

vandermyer

  • Community Member
  • Posts: 33
  • Hero Points: 2
Not sure if this is something I have changed (and if I have I can't see what) but I have just noticed that alias expansions are inserting spaces where I don't want them. For example:

while (%\c)
{
%\m sur_text -indent%
}

expands to:

while ( ^ )
{
    ^
}

That ^ is my attempt to show the hotspot. May not be too clear, but the one on the 'while' line is surrounded by spaces.

Is there a setting to alter this behaviour, i.e. so I get:

while (^)
{
    ^
}

(No spaces around the hotspot on the 'while' line).

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1744
  • Hero Points: 148
Usually that would be controlled under Tools -> Beautify -> Edit Current Profile,  under Spacing -> Statements, and then click on the statement type and look for the "Pad inside parenthesis" setting.

The exception to that is if you have adaptive formatting enabled - in that case, if adaptive formatting has decided that you're padding parens in control statements, that would also enable it.    You can check if that's the case by running "adaptive-format-stats" in the SlickEdit command line, and seeing if it made a decision about paren padding.

If those aren't it, may need to do some debugging.

vandermyer

  • Community Member
  • Posts: 33
  • Hero Points: 2
Thanks. Looked like what I thought: did not know where to find the setting!