-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Favorite imports #368
Comments
(Below comment was opened as a new issue #424) I'd be happy if the menu is sorted in a more sensible manner. Right now it looks so random and messy. It doesn't even look like a lexicographic sort. And it's hard to look for the correct import when the menu is very lengthy. 😞 Can it be sorted so that all the "Import" suggestions appear on top? Followed by "Change to", because more often than not, the class name is correct and I don't need to change it, I just need to import it. And within each type of suggestion, sorting could be lexicographic by default but also any recent/plausible imports or favorites could bubble to the top (within the type). Related: #56 |
@snjeza can you please see if we can add the equivalent of via a server preference like: "java.completion.favoriteMembers": [
"org.junit.Assert.*",
"org.junit.Assume.*",
"org.junit.jupiter.api.Assertions.*",
"org.junit.jupiter.api.Assumptions.*",
"org.junit.jupiter.api.DynamicContainer.*",
"org.junit.jupiter.api.DynamicTest.*"
] The .* suffix seems to be just for show in Eclipse UI, we could very well ignore it. My main concern about this feature is if relies too much on jdt.ui, then it'll be harder to port to jdt.ls. |
@ADTC can you please open a separate bug report, proposal sort order/relevance is a bit of a different matter. |
New "java.completion.favoriteStaticMembers": [
"org.junit.Assert.*",
"org.junit.Assume.*",
"org.junit.jupiter.api.Assertions.*",
"org.junit.jupiter.api.Assumptions.*",
"org.junit.jupiter.api.DynamicContainer.*",
"org.junit.jupiter.api.DynamicTest.*"
] |
I'd like something like Eclipse's "Favorites" features for imports. In particular I'd like to be able to say "I like these classes and these static methods so when I hit
ctrl-.
on an unimported class give me those options first if they match". This'd make imports a bit easier and static method imports much easier. I get that they are different things, but Eclipse sticks them together in its UI so I think of them as a single thing.The text was updated successfully, but these errors were encountered: