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

Auto autocomplete #77

Open
sebkolind opened this issue Mar 14, 2020 · 12 comments
Open

Auto autocomplete #77

sebkolind opened this issue Mar 14, 2020 · 12 comments

Comments

@sebkolind
Copy link

sebkolind commented Mar 14, 2020

For some reason, Auto import when selecting from the auto-complete menu does not work for me. I have the following settings:

{
    "space_around_braces": false,
    "autocomplete_export_names": true,
    "autocomplete_auto_import": true,
}

Do I have to do something special to get this working?

@unlight unlight self-assigned this Mar 14, 2020
@unlight
Copy link
Owner

unlight commented Mar 17, 2020

It works after sublime auto-complete (ctrl + space):
type -> ctrl+space ... -> tab or enter

@sebkolind
Copy link
Author

@unlight That does not work at all at my version. I've gone back to Vim tho, so this should be closed if nobody else got the same issue.

@sahilrajput03
Copy link

This issue occurs to me to.. is there any chance it'll get resolved.?

@unlight unlight closed this as completed Aug 27, 2020
@unlight unlight reopened this Aug 27, 2020
@sahilrajput03
Copy link

Cool!!!
So, is there any change of getting this fixed ??

@sahilrajput03
Copy link

Pressing tab/enter on autocompletion doesn't import it, but after using tab/enter and then pressing ctrl+shift+i does work. Auto import with autocompletion doesn't work.!

@unlight
Copy link
Owner

unlight commented Aug 27, 2020

It should work after pressing tab/enter, but it's important to press ctrl+space before that.
Without ctrl+space it will not work. It's limitation.

@sahilrajput03 this is your case?

I'll try to check it again today.

@sahilrajput03
Copy link

Hey, I'm very sorry, I didn't try it with ctrl+space and try importing it!!

Its 100% working with the settings above!!
Thanks, buddy!!!!

@sahilrajput03
Copy link

I request you to close this issue!!

@unlight
Copy link
Owner

unlight commented Aug 27, 2020

Nice. I'll keep it opened for now, maybe I can improve it later.

@sahilrajput03
Copy link

Like without ctrl+space?.

@sebkolind
Copy link
Author

sebkolind commented Oct 14, 2020

I can only get this to work when finishing the name of the symbol, and then pressing Ctrl+Alt+I (i), which lets me choose from a list of possible imports.

@unlight
Copy link
Owner

unlight commented Oct 14, 2020

@SebastianKS
This is not how it supposed to be.
Auto Import should work like auto complete: when you press tab / enter, word completes, import statement added.

@unlight unlight changed the title Auto import is not working Auto autocomplete Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants