Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Autocomplete for import statements lacks ; character at the end #9

Open
sirkon opened this issue Apr 28, 2020 · 4 comments · May be fixed by #44
Open

Autocomplete for import statements lacks ; character at the end #9

sirkon opened this issue Apr 28, 2020 · 4 comments · May be fixed by #44
Labels
enhancement New feature or request

Comments

@sirkon
Copy link

sirkon commented Apr 28, 2020

Hi! Thank you very much for this work, the plugin is really great.

Yet, there's a tiny annoyance on autocomplete for import statements.

Look at the screencast:

https://youtu.be/HKkJXtfhLgM

You see, the import statement appears without a final ; although it is mandatory.

@jvolkman
Copy link
Owner

Hi. Thanks for the report and screencast. It seems like a reasonable request, but I would like to make sure it aligns with common behavior of other editors in the IntelliJ ecosystem. I played with the Java import statement and found that it does not automatically insert the ;. Have you seen this behavior elsewhere?

@jvolkman
Copy link
Owner

jvolkman commented Apr 28, 2020

Actually, it looks like the Java editor supports accepting a completion and inserting the ; by hitting the ; key instead of enter. Would that work for you?

@jvolkman jvolkman added the enhancement New feature or request label Apr 28, 2020
@sirkon
Copy link
Author

sirkon commented Apr 28, 2020

I guess this would be a bit more convenient indeed. Although you are right about languages with ;, CLion doesn't automatically put ; for

std::cout << "Hello world!"

@jvolkman
Copy link
Owner

jvolkman commented May 2, 2020

So it turns out that hitting ; also works in the import autocomplete, but the semicolon is inserted inside the quotes. So far I haven't figured out how to modify that behavior.

@yidayoung yidayoung linked a pull request Oct 23, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants