如何在NetBeans中将打开的文件与项目树链接

编程入门 行业动态 更新时间:2024-10-28 09:19:05
本文介绍了如何在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?

推荐答案

来自 forumsbeans /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]:也可以工作:在文件>鼠标右键>选择>项目中|文件|类最喜欢的

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

: forumsbeans/topic8420.html 注意:此功能直到NetBeans IDE 6.5才可用.此功能已添加到新版本中,并且可能在NetBeans IDE 7.0M1及更高版本中可用,您可以在查看"菜单中找到它.

[edit 2]: forumsbeans/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中将打开的文件与项目树链接

本文发布于:2023-06-04 08:38:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/493404.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中将   链接   文件   项目   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!