如何在 NetBeans 中将打开的文件与项目树链接 [英] How to link opened file with project tree in NetBeans

查看:21
本文介绍了如何在 NetBeans 中将打开的文件与项目树链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得问这个问题很愚蠢,但我自己找不到解决方案.

I feel dumb asking this question, but I can't find solution to this myself.

当我在编辑器中打开多个文件并在它们之间切换时,我无法在项目或文件树中找到当前打开的文件.

When I open several files in editor and switch between them, I have problem finding currently opened file in project or files tree.

我之前使用过 Eclipse,每次更改带有文件的选项卡时,项目树都会为同一文件设置焦点.有没有办法在 NetBeans 中做这样的事情?

I used Eclipse before and every time I changed a tab with file, the project tree set focus for the same file. Is there a way to do something like this in NetBeans?

推荐答案

来自 http://forums.netbeans.org/topic3732.html:

我相信您可以从导航菜单执行此操作.有条目转到项目选项卡或文件选项卡中的文件.我没有看到允许您自动执行此操作的选项,就像在Eclipse,但此菜单条目允许您根据要求执行此操作.

You can do this from the navigate menu, I believe. There are entries for going to the file in the project tab or the file tab. I didn't see an option that allows you to do this automatically, like there is in Eclipse, but this menu entry allows you to do it upon request.

:同样有效:在文件中 > 鼠标右键 > 在 > 项目中选择 |文件 |课程 |收藏夹

[edit]: also working: in the file > right mouse button > select in > projects | files | classes | favourites

:http://forums.netbeans.org/topic8420.html:此功能在 NetBeans IDE 6.5 之前不可用.此功能是在新版本中添加的,并且可能在 NetBeans IDE 7.0M1 及更高版本中可用,您可以在视图"菜单中找到它.

[edit 2]: http://forums.netbeans.org/topic8420.html : This feature is not available till NetBeans IDE 6.5. This feature is added in the new version and may be available in NetBeans IDE 7.0M1 and after and you can find it in the View Menu.

这篇关于如何在 NetBeans 中将打开的文件与项目树链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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