面向Eclipse用户的QtCreator [英] QtCreator for Eclipse Users
问题描述
我最近从Eclipse的背景切换到了QTCreator for C ++.
I recently switched to QTCreator for C++ from Eclipse background.
我正在QtCreator中寻找这两个功能...
I am looking for these two features in QtCreator...
(1)我想通过键入该类的名称来打开写入该类的文件.例如,在Eclipse中, Ctrl + Shft + T .
(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)我想回到当前操作之前光标所在的位置.
(2) I want to move back to where my cursor were before the current operation.
以上两个功能的任何快捷方式吗?
Any shortcuts for above two features?
推荐答案
-
要打开一个类的文件,请执行以下操作:
To open the file of a class:
- 如果您在使用该类的文件中,则可以将光标放在该类上,然后按F2.默认情况下,F2绑定到在光标下跟随符号操作.
- 如果要上课而没有找到它的实例,则可以使用 定位器 .默认情况下,按:
-
ctrl
+k
访问定位器 - 先输入
c
,然后再输入space
来查找类 - 现在输入班级名称.选择班级后,点击
enter
- If you are in a file that is making use of the class, you can place the cursor on the class then press F2. By default, F2 is bound to the Follow Symbol Under Cursor action.
- If you want to get to the class without to find an instance of it, you can use the Locator . By default Press:
ctrl
+k
to access the locator- Type
c
thenspace
to locate classes - Now type the name of your class. Once you've selected the class, hit
enter
要导航回原来的位置,可以使用RomanBackytsev提到的GoBack和GoForward.这些默认为
alt
+left
和alt
+right
.自从我使用eclipse已经有很多年了,但是我认为它也使用了alt
+left
和right
,因为我很高兴发现QtCreator也使用了它.To navigate back to where you were, you can use GoBack and GoForward, as mentioned by Roman Zaytsev. These default to
alt
+left
andalt
+right
. It has been many years since I have used eclipse, but I thought it also usedalt
+left
andright
as I was pleased to find QtCreator used it as well.这篇关于面向Eclipse用户的QtCreator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
-