Archived Read Only Forums > SlickEdit 2018 v23 Beta Discussion

Hang searching for beautifier rule

(1/1)

guth:
I have used v23 during European morning, and it feels much slicker editing C++ code!

I would like to have a beautifier profile for visual studio projects. When I tried to find a rule for indentation of lambda functions, I tried to search field of editing a profile, but that hangs the editor.

patrick:
Curious, does it hang for everything you type, or just certain search expressions? I've not been able to reproduce it yet.  If it doesn't seem to be specific to what you're typing, then I'll probably have to collect your configuration information, on the off chance it's some combination of settings and the search that's somehow going wrong. 

guth:
When I tried, I could, unfortunately, not reproduce it.

In slick, a lambda is indented from the left parenthesis, while in visual studio, it is indented from the indentation level of the method that the lambda is an argument of. Is it possible to tweak some parameter to get the same behavior in slick?

patrick:
So, like this?

--- Code: --- std::sort(x, x + n, [](float a, float b) {
    return a < b;
});

--- End code ---

There currently isn't a setting that does that.  It does seem like a good candidate to add.

guth:
Yes, exactly.

Navigation

[0] Message Index

Go to full version