Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reveal current file in project sidebar pane in Qt Creator

Tags:

qt-creator

After using Sublime Text for a while for work, I've found myself wanting this feature more and more in Qt Creator. For those that don't know, in Sublime there is an option to open the project tree to the current file called "Reveal in sidebar".

Is there a keyboard shortcut for Qt Creator that I'm missing here? Or is the functionality simply not there?

Thank you for any light you can shed on the situation!

like image 327
Rory Baffle Avatar asked Mar 23 '16 08:03

Rory Baffle


People also ask

How do you comment on QT?

You can select multiple lines in the editor and then right click.. There is an (Un)Comment selection and the shortcut is Ctrl+/ either for commenting or for uncommenting a line.


1 Answers

Look at the toolbar in Qt Creator, above the "Project" tree. You'll see a little button with two overlapped ovals. This will sync the project tree with the current open file, and reveal wherever it is in the project hierarchy.

like image 108
MusiGenesis Avatar answered Oct 20 '22 16:10

MusiGenesis