Author Topic: Hang searching for beautifier rule  (Read 969 times)

guth

  • Senior Community Member
  • Posts: 100
  • Hero Points: 7
Hang searching for beautifier rule
« on: July 25, 2018, 08:52:10 am »
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1136
  • Hero Points: 107
Re: Hang searching for beautifier rule
« Reply #1 on: July 25, 2018, 01:22:23 pm »
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

  • Senior Community Member
  • Posts: 100
  • Hero Points: 7
Re: Hang searching for beautifier rule
« Reply #2 on: July 25, 2018, 03:02:53 pm »
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1136
  • Hero Points: 107
Re: Hang searching for beautifier rule
« Reply #3 on: July 25, 2018, 03:38:00 pm »
So, like this?
Code: [Select]
std::sort(x, x + n, [](float a, float b) {
    return a < b;
});

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

guth

  • Senior Community Member
  • Posts: 100
  • Hero Points: 7
Re: Hang searching for beautifier rule
« Reply #4 on: July 26, 2018, 06:14:50 am »
Yes, exactly.