面向Eclipse用户的QtCreator [英] QtCreator for Eclipse Users

查看:329
本文介绍了面向Eclipse用户的QtCreator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近从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?

推荐答案

  1. 要打开一个类的文件,请执行以下操作:

  1. 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 then space to locate classes
      • Now type the name of your class. Once you've selected the class, hit enter

      要导航回原来的位置,可以使用RomanBackytsev提到的GoBack和GoForward.这些默认为alt + leftalt + right.自从我使用eclipse已经有很多年了,但是我认为它也使用了alt + leftright,因为我很高兴发现QtCreator也使用了它.

      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.

      这篇关于面向Eclipse用户的QtCreator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆