如何获得自动完成功能的基于Eclipse的cocos2d-X? [英] How to get autocomplete feature for cocos2d-x on eclipse?

查看:133
本文介绍了如何获得自动完成功能的基于Eclipse的cocos2d-X?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个相当初级的问题,但我一直在努力的cocos2d-iPhone很长一段时间在X code。现在,我已改用的Cocos2D-X上的Eclipse,而我很习惯的自动完成功能。 Eclipse不给上pressing Ctrl +空格键进行了cocos2d-X数据类型和函数自动完成。是他们无论如何让那些?

解决方案

正如@ user2228947说,Eclipse中找不到的cocos2d-X头,我们需要与我们的项目链接的cocos2d-X。我曾跟随以下步骤启用自动完成:

  
      
  1. 右键单击该项目,然后单击属性。
  2.   
  3. 在导航到C / C ++通用 - >路径和符号 - >源位置
  4.   
  5. 点击链接文件夹,然后检查链接到文件夹中的文件   系统复选框。
  6.   
  7. 现在,浏览到$ {COCOS2DX_ROOT} / cocos2dx文件夹,然后单击确定
  8.   

来源:的Cocos2D-X论坛

This is quite a beginner question, but I have been working on cocos2d-iPhone for quite some time on xcode. Now I have switched to cocos2d-x on eclipse, and I am very used to the autocomplete feature. Eclipse does not give autocompletes on pressing ctrl+space for cocos2d-x data types and functions. Is their anyway to get those?

As @user2228947 said, Eclipse can't find the cocos2d-x headers, we need to link the cocos2d-x with our project. I had followed the below steps to enable Auto completion:

  1. Right click on the project and click on 'Properties'.
  2. Navigate to C/C++ General -> Paths and Symbols -> Source Location.
  3. Click 'Link Folder' and then check on 'Link to folder in File system' checkbox.
  4. Now 'Browse' to the "${COCOS2DX_ROOT}/cocos2dx" folder and click 'ok'

Source: Cocos2d-x Forum

这篇关于如何获得自动完成功能的基于Eclipse的cocos2d-X?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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