Eclipse PDT区分MVC的文件名选项卡? [英] Eclipse PDT Differentiating file name tabs for MVC?

查看:142
本文介绍了Eclipse PDT区分MVC的文件名选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中使用MVC时,您可能经常有一个模型,视图和控制器,同时打开相同的名称。当查看每个文件选项卡时,您不会总是知道哪些是必须点击的,有时候这可能是一个麻烦。我听说过可以根据一些编辑器中的路径对代码文件进行颜色编码。例如,具有路径模型的选项卡可以设置为绿色,路径控制器设置为黄色等。这在Eclipse中是可能的,还是有这样的插件?如果没有,你做什么来更容易地区分选项卡?我听说过人们总是按照一定的顺序打开一个MVC。所以你会知道最左边的选项卡是控制器,最右边的是视图等。但是,这也意味着你需要每次打开所有3个文件。任何更好的提示或技巧?

When working with MVC in Eclipse you might often have a model, view, and controller all with the same name open at the same time. When looking at each of the file tabs, you won't always know which is which and have to click through them, which can be quite a hassle sometimes. I've heard of being able to color code files based on the path in some editors. For example, tabs with path model could be set as green, path controller set as yellow, etc. Is this possible in Eclipse, or is there a plugin for something like this? If not, what do you do to more easily differentiate between the tabs? I've heard of people always opening a MVC set in a certain order. So you'll know the leftmost tab is the controller, the right most is the view, etc. However, that must also mean you need to open all 3 files each time. Any better tips or tricks?

另一件可以令人讨厌的文件选项卡的事情是,当你有更多的文件不能适合一行,eclipse推到一个箭头,你必须点击查看其余的。似乎是随机的,哪些标签被推到那里,也许是最少使用的,我不知道...这加上面的问题得到一种烦人的。我试图找到一种方法来禁用它,只是显示不能适应一行显示在第二行的选项卡,但令人惊讶的是找不到这样的选项(然后再次,你也不能没有插件)。

Another thing about the file tabs that can be annoying is that when you have more files that can't fit in one line, eclipse pushes off to an arrow which you have to click to see the rest. It seems to be random which tabs get pushed off there, maybe the least used ones, I have no idea... This coupled with the problem above gets kind of annoying. I was trying to find a way to disable this and just show tabs that can't fit in one line to show up on a second line, but surprisingly couldn't find such an option (then again you also can't wordwrap without a plugin).

希望这两个问题有一些解决方案。谢谢。

Hopefully there are some solutions to these two problems. Thanks.

推荐答案

使用最新版本的Eclipse(Kepler 4.3.1,构建M20130911-1000)当两个或多个文件与打开相同的基本名称,tab也会显示父目录名称。

With the latest version of Eclipse (Kepler 4.3.1, build M20130911-1000) when two or more files with the same base name are opened, tab will show also the parent directory name.

这篇关于Eclipse PDT区分MVC的文件名选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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