MyEclipse不提示content assist 更改启动workspace

MyEclipse不提示

新安装的myeclipse8.5,由于某些配置原因,无法给出代码提示。设置方法如下:

1、菜单window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项要打上勾

2、window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the 'default' content assist list:     中把 Other Java Proposals 选项打上勾就可以了。 作为程序员没有这个功能那时相当的难受

 

 

 另外,更改提示快捷键:1.选择MyEclipse菜单栏中的Window->preferences;

2.选择General->keys;

3.在右侧中间的窗体中点击word completion后再点击remove binding,在下方的binding中随便输入一个快捷键;

4.然后选择Content Assist点击Remove binding,在binding中输入Alt+/;

5.点击Ok就可以了。

 

 

自动补全设置

1.打开MyEclipse8.5,然后“window”→“Preferences”

2. 选择“java”,展开,“Editor”,选择“ContentAssist”。

3. 选择“Content Assist”,然后看到右边,右边的“Auto-Activation”下面的“AutoActivation triggers for java”这个选项。其实就是指触发代码提示的就是“.”这个符号。

 4. “AutoActivation triggers for java”这个选项,在“.”后加abc字母,方便后面的查找修改。然后“apply”,点击“OK”。

5.然后,“File”→“Export”,在弹出的窗口中选择“Perferences”,点击“下一步”。

6.选择导出文件路径,本人导出到桌面,输入“test”作为文件名,点击“保存”。

7.在桌面找到刚在保存的文件“test.epf”,右键选择“用记事本打开”。

 8. 可以看到很多配置MyEclipse 6.0.1的信息

9.按“ctrl + F”快捷键,输入“.abc”,点击“查找下一个”。

10. 查找到“.abc”的配置信息如下:

如下:

11.把“.abc”改成“.abcdefghijklmnopqrstuvwxyz(,”,保存,关闭“test.epf”。 12.回到MyEclipse 6.0.1界面,“File”→“Import”,在弹出的窗口中选择“Perferences”,点击“下一步”,选择刚在已经修改的“test.epf”文件,点击“打开”,点击“Finish”。该步骤和上面 的导出步骤类似。之后,你打什么字母,都会有提示了

 

 

 

 

 

解决更新启动工作空间

修改如下配置文件,可以解决该问题:

 "D:/Program Files/Genuitec_/MyEclipse 8.5/configuration/config.ini"

 

该目录为MyEclipse的安装根目录下configuration目录下的config.ini文件。使用EditPlus或者notepad打开该文件如下所示:

 

#Generated by Pulse at Fri May 21 09:57:03 CST 2010 #Fri May 21 09:57:03 CST 2010 com.genuitec.pulse.client.handshake.id=c9bf19e2-fed1-409c-84e6-3e709536f6ac org.eclipse.update.reconcile=false eclipse.p2.profile=com.poweredbypulse.profile-0-rb-578452-1274341810546 osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.5 osgi.framework=file/:../Common/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar com.genuitec.pulse.client.credentials=cTOb7s2f3UXTnmnso/3saVlZNcsVYnKlA1cjOHZSvYRFZ35Xo13oQqBXZqPm+A+H9OLrKa2KQnub yZyGnsvnFebj1Y3NRNStATKJtB1itGImSAf4bTK+7WwSeLTOxHBkhX0DWm02aSmu7auXFH0kzlg2 8AtN4vblt5Lx2RrzgU0/= osgi.splashLocation=D/://Program Files//Genuitec_//Common//plugins//com.genuitec.myeclipse.product85_8.5.0.me201003250242//splash.bmp com.genuitec.pulse.client.blueprint.id=rmb-758596 com.genuitec.pulse.common.server.url=https/://www.poweredbypulse.com/:443 osgi.bundles=reference/:file/:org.eclipse.equinox.simpleconfigurator_1.0.100.v201003231800.jar@1/:start org.eclipse.equinox.simpleconfigurator.configUrl=file/:org.eclipse.equinox.simpleconfigurator/bundles.info eclipse.product=com.genuitec.myeclipse.product85.ide osgi.splashPath=platform/:/base/plugins/com.genuitec.myeclipse.product85 eclipse.p2.data.area=file/:/C/:/Program Files/Genuitec/Common/configuration/ osgi.bundles.defaultStartLevel=4 osgi.framework.extensions= com.genuitec.pulse.client.basedir.location.override=C/://Program Files//Genuitec 

 

  大概在第6行有如下内容: 

osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.5 
 

 将其修改为:

osgi.instance.area.default=E/://Workspaces//MyEclipse

  其中E:/Workspaces/MyEclipse为期望的默认加载工作空间

 但在ini文件需要写成E/://Workspaces//MyEclipse

保存重启!over
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值