Qt Creator: How can I complete the line with ; at the end and move to next line like in Intellij Idea?
-
Hello,
In idea/Intellij when I am in the middle of a line but I want to close brackets, place a ; at the end of the line I can do so with a hotkey ctrl-enter.
IS there something similar in Qt Creator, best i can find is to hotkey to the end of the line and type the characters and then press Enter but this takes way more time.
Thanks!
-
Hello,
In idea/Intellij when I am in the middle of a line but I want to close brackets, place a ; at the end of the line I can do so with a hotkey ctrl-enter.
IS there something similar in Qt Creator, best i can find is to hotkey to the end of the line and type the characters and then press Enter but this takes way more time.
Thanks!
@Nuclear
hi, I'm not awate of such a function yet, but it sounds useful.You might want to file a suggestion on bugreports.qt.io/QTCREATORBUG (and add a link to the report here).
Thanks & Regards
-
Hi
Not sure it can do that directly but you could try to record macro
than save it to file and go to

Tools > Options > Environment > Keyboard.
and assign a key for it

-
@Nuclear
hi, I'm not awate of such a function yet, but it sounds useful.You might want to file a suggestion on bugreports.qt.io/QTCREATORBUG (and add a link to the report here).
Thanks & Regards
@aha_1980 Thanks, so how are you doing it? You are entering a parameter when you call a function then what? You press arrows to go to the end of the line and then you press ; and then you press enter?
This seems like a huge waste of time every time, no?
This is how it is in Intellij:
If you let the first short movie run you can see what I mean, this is such a time saver
https://www.jetbrains.com/help/idea/auto-completing-code.html#statements_completion