Skip to content
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

Suggest Suitable Autocompletion of Apply Method #70

Open
mikail-khan opened this issue Jan 22, 2020 · 3 comments
Open

Suggest Suitable Autocompletion of Apply Method #70

mikail-khan opened this issue Jan 22, 2020 · 3 comments

Comments

@mikail-khan
Copy link

mikail-khan commented Jan 22, 2020

Not sure if this is a good fit for metals but would it be possible to have a template to autocomplete the apply method:

image

In Intellij there is:

image

which gives

image

@tgodzik
Copy link
Contributor

tgodzik commented Jan 23, 2020

Thanks for reporting! I agree this could be useful, it should be doable via completions when defining apply, but we would need to make sure it's not interfering with any other completions.

@olafurpg
Copy link
Member

Thank you for reporting! This is a good idea. Another similar completion I have found myself wanting is def main(args: Array[String]): Unit = {$0}.

@kubukoz
Copy link

kubukoz commented Apr 17, 2020

Let's also remember that apply is often used with type classes to summon an implicit instance. Maybe we could suggest that instead, if the type in question is a type-parameterized trait or abstract class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants