Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut to "go to file" and "go to method" in Qt Creator?

In Sublime Text I can type Ctrl+P, then type a filename to go directly to this file. I can also type Ctrl+R, type a method name and go to that method in the current file.

Are there equivalent shortcuts in Qt Creator?

like image 958
laurent Avatar asked Jan 10 '17 12:01

laurent


1 Answers

Qt has many shortcuts available.

In particular, you can Activate Locator with Ctrl+K, type your desired file name, and press ENTER.

If you want to go to a specific method, activate locator and type mspace and then the name of the method. Same works for classes and cspace, and various other things. (Thanks E4z9)

If you are able to see this method in your file, clicking on it and pressing F2 will go to its declaration or definition, or Ctrl+Click would go to its definition.

like image 127
Jean-Emmanuel Avatar answered Nov 07 '22 19:11

Jean-Emmanuel