是否有一种快速方法可以在Eclipse中单击Java类并获取其完全限定名称,或将其复制到剪贴板?
Edit on 2016-06-29:
As pointed by Jeff, you only need the 2nd step in the following:
1. Double-click on the class name in the source code.
2. Right-click and select "Copy Qualified Name"
Try this:
Alternatively:
/
characters with .
When you hover over it, you see the full name.
And if you click on the window that opens, you can mark the full name and copy it to the clipboard :
Instead of clicking the "Fully Qualified Name" item in the popup, you can simply use its shortcut, Y
, when menu is shown. See letter Y underlined on screenshot in Dollyn's answer.
I have a simpler solution: just create a key shortcut
Menu Window > Preferences > (write "keys") > search for "Copy Qualified Name" > add any not-yet-assigned key shortcut. Apply > OK.
There. Ready to use. Easy.
1- Right click on the class name in Package Explorer
.
2- Click on Copy Qualified Name
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.