将Eclipse中的路径/文件名复制到剪贴板 [英] Copy path/file name in Eclipse to clipboard
问题描述
有没有将当前路径/文件复制到剪贴板的快捷方式?
Is there a shortcut to copy the current path/file to the clipboard?
推荐答案
有在Eclipse中复制合格名称
函数,它将复制您选择的元素的全名(或元素在光标上)。
There is Copy Qualified Name
function in Eclipse, it will copy the full name of the element you select (or element on cursor).
例如:
/MyProject/src/app/Application.java
:当您在<$ c中选择Application.java时$ c> Package Explorer
java.util.HashSet< String>
您在光标位于 HashSet< String>
时复制,但要求您选择你想要的元素。
However, it required you to select the element you want.
所以,这是我做的。
-
使您的
包资源管理器
与编辑器链接,您可以通过点击右上角的双箭头图标来激活。
Make your
Package Explorer
link with editor, you can active this by click the double-arrow icon at top-right corner.
设置显示视图(Package Explorer)的热键
ex: Alt + 1
设置打开的热键复制合格名称
ex: Alt + Ctrl + Shift + c
Set up a hot-key for Copy Qualified Name
ex : Alt + Ctrl + Shift + c
每当我需要这些信息在当前文件中,我只是按热-key调用我的包资源管理器
由于它与编辑器链接,并且将始终在当前编辑器中选择该文件,您可以使用热键进行复制。那么你可以使用 F12 回到你的编辑器,或者简单的 ESC ,如果你使用快速浏览。
Whenever I need these information in current file, I just press the hot-key to call my Package Explorer
Since it links with editor and will always select the file in current editor, you can just copy with the hot-key. Then you can use F12 back to your editor, or simply ESC if you use fast view.
,但它有效:D
这篇关于将Eclipse中的路径/文件名复制到剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!