Eclipse Package Explorer '>' 文件名前的符号

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9212996/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 17:41:34  来源:igfitidea点击:

Eclipse Package Explorer '>' Symbol Before File Names

eclipse

提问by Greg

This question is tough to search for as the '>' symbol seems to be ignored in Stack Overflow's search, so I apologize if it's been asked and answered before.

这个问题很难搜索,因为在 Stack Overflow 的搜索中似乎忽略了“>”符号,所以如果之前有人问过并回答过,我深表歉意。

In Eclipse's package explorer view it will append a '>' symbol to the start of a file name if that file has been edited since it has last been synchronized with a repository. The problem with this is the '>' symbol is then taken into account when selecting files with the keyboard.

在 Eclipse 的包资源管理器视图中,如果该文件自上次与存储库同步以来已被编辑,它将在文件名的开头附加一个“>”符号。这样做的问题是在使用键盘选择文件时会考虑“>”符号。

Say there's a file titled Main.java. If it hasn't been edited since synchronizing you can type 'Main' when the package explorer has focus and that file would get selected. However if the file has been edited you would have to type in '>Main' for it to get selected.

假设有一个名为 Main.java 的文件。如果它在同步之后没有被编辑过,你可以在包浏览器有焦点并且该文件被选中时输入“Main”。但是,如果文件已被编辑,则必须键入“>Main”才能选择它。

Does anybody know if this is a feature that can be disabled? I haven't found anything searching through Eclipse's menus, and I haven't been able to find anybody else mentioning this online.

有谁知道这是否是可以禁用的功能?我在 Eclipse 的菜单中没有找到任何搜索结果,我也找不到其他人在网上提到这个。

采纳答案by Hauke Ingmar Schmidt

Preferences Team > SVN > Label Decorations. You can change the format (and thus the position) in Text Decorations(e.g. "File": "{outgoing_flag} {name} {revision}") and set non-textual icons for outgoing changes in Icons Decorations.

首选项Team > SVN > Label Decorations。您可以在Text Decorations(例如“文件”:“{outgoing_flag} {name} {revision}”)中更改格式(以及位置),并为 中的传出更改设置非文本图标Icons Decorations

This is for Subversive team provider, Subclipse uses a different design. Maybe you will find the settings two times.

这是针对 Subversive 团队提供者,Subclipse 使用了不同的设计。也许你会找到两次设置。

回答by Tom Seidel

The selection of a leaf of your tree is the default behavior of the underlying Tree Widget which is rendered by your operating system. Since a native Tree doesn't know something about Decorators (the '>' is drawn by a decorator from your team provider) the text of a leaf contains the '>' character. To open a resource use the much more comfortable shortcut Ctrl+Shift+R

选择树的叶子是由操作系统呈现的底层树小部件的默认行为。由于原生树不了解装饰器(“>”是由您的团队提供者的装饰器绘制的),因此叶子的文本包含“>”字符。要打开资源使用更舒适的快捷方式 Ctrl+ Shift+R

回答by Soundararajan

In eclipse goto preferences

在 Eclipse 中转到首选项

Goto General -> Apperance -> Label Decorations -> Unckeck GIT

转到 General -> Apperance -> Label Decorations -> Unckeck GIT

or SVN if you are using SVN. In my case i am using GIT.

或 SVN,如果您使用的是 SVN。就我而言,我使用的是 GIT。