sublime-import-helper icon indicating copy to clipboard operation
sublime-import-helper copied to clipboard

Auto autocomplete

Open sebkolind opened this issue 4 years ago • 12 comments

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?

sebkolind avatar Mar 14 '20 09:03 sebkolind

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

unlight avatar Mar 17 '20 19:03 unlight

@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.

sebkolind avatar Mar 30 '20 19:03 sebkolind

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

sahilrajput03 avatar Aug 21 '20 22:08 sahilrajput03

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

sahilrajput03 avatar Aug 27 '20 14:08 sahilrajput03

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.!

sahilrajput03 avatar Aug 27 '20 14:08 sahilrajput03

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.

unlight avatar Aug 27 '20 14:08 unlight

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 avatar Aug 27 '20 17:08 sahilrajput03

I request you to close this issue!!

sahilrajput03 avatar Aug 27 '20 17:08 sahilrajput03

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

unlight avatar Aug 27 '20 18:08 unlight

Like without ctrl+space?.

sahilrajput03 avatar Aug 28 '20 07:08 sahilrajput03

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.

sebkolind avatar Oct 14 '20 06:10 sebkolind

@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 avatar Oct 14 '20 19:10 unlight