Can qt creator implement context windows feature just like the SourceInsight ?
-
When I move cursor to some function, then the function's implementation will appear in the context window, see the following image. I think that's quite convenient.
Is it a plan for qt creator ?
Thanks.
-
Another question:
When c++ key word auto is used, many IDE including qt creator cannot identify auto variable's call, which means you cannot use F2 to jump the function's implementation. Can this issue be solved ? I think IDE can guess the auto variable's type from the calling function.
After all, auto is frequently used in modern C++. So it'll be great if this issue is solved.
-
@Lewis-Chan You should ask QtCreator developers. This forum is for users.
See https://bugreports.qt.io/projects/QTCREATORBUG/summary or mailing lists. -
@Lewis-Chan said in Can qt creator implement context windows feature just like the SourceInsight ?:
When c++ key word auto is used, many IDE including qt creator cannot identify auto variable's call, which means you cannot use F2 to jump the function's implementation. Can this issue be solved ? I think IDE can guess the auto variable's type from the calling function.
This is QTCREATORBUG-19802
-
@Lewis-Chan said in Can qt creator implement context windows feature just like the SourceInsight ?:
When I move cursor to some function, then the function's implementation will appear in the context window, see the following image. I think that's quite convenient.
Is it a plan for qt creator ?
Thanks.
It's not quite the same, but you can use 'Ctrl+LeftMouseClick' to jump to the function-buddy and if you 'Ctrl+LeftMouseClick' on the functionbody you'll jump to the definition of the function. And you can use 'Alt+LeftArrowKey' to jump back.
this works also with variables of all kind
-
@J.Hilk
Thanks. I know that. Many times I just wish to see how the function under the cursor looks like , but I don't want to jump into that. So context windows should be better in this case.Maybe instead of providing a context windows, thumbnail floating around the cursor could be acceptable.
-
There is at least a workaround for now: if you press
Ctrl+Alt+LeftMouseClick
, a new split is opened with the definition. To go back, you have to close the split, however. -
@aha_1980
Hi. As I know, qtcreator doesn't handle well with auto keyword. I wish another trick, when I put cursor onto a auto variable's call, such asauto v = SomeClass(); v.func();
Cursor is at func(). I wish to use shortcut key to show the option list, just as the result that I move cursor to Locator and input
:m func
then it will give me a list where func appears.
Is there such a shortcut ? If it exists, it may improve my code-reading greatly