[Qt-creator] Lambda completion with ;

André Pönitz apoenitz at t-online.de
Tue Mar 3 18:54:09 CET 2020


On Tue, Mar 03, 2020 at 05:52:41PM +0100, Jason H wrote:
> Would it be possible to get QtC to provide the ; automatically for a lambda?
> [=](){<enter>
>     |
> }); // <- this ;
> 
> So that when hitting enter after the {
> that the }); if provided and the cursor ends up placed above it and indented (where the | is)?

That's conceptually the same as requesting a semicolon being appended
automatically while typing the ( and the ) auto-added in

   int x = foo(); 

The expression does not necessarily end at the }.

Andre'


More information about the Qt-creator mailing list