Reputation: 15798
I recently switched to QTCreator for C++ from Eclipse background.
I am looking for these two features in QtCreator...
(1) I want to open the file a class is written in by typing that class's name. For example Ctrl+Shft+T in Eclipse.
(2) I want to move back to where my cursor were before the current operation.
Any shortcuts for above two features?
Upvotes: 2
Views: 1140
Reputation: 264
To go back to recent positions in the file / in other files, the gui has some handy buttons here
Upvotes: 0
Reputation: 663
To open the file of a class:
ctrl
+ k
to access the locatorc
then space
to locate classesenter
To navigate back to where you were, you can use GoBack and GoForward, as mentioned by Roman Zaytsev. These default to alt
+ left
and alt
+ right
. It has been many years since I have used eclipse, but I thought it also used alt
+ left
and right
as I was pleased to find QtCreator used it as well.
Upvotes: 2
Reputation: 1448
(2) I want to move back to where my cursor were before the current operation.
Go to Tools > Options > Environment > Keyboard. There assign shortcuts for "GoBack" and "GoForward" in "QtCreator" section.
Upvotes: 1