Vscode: IntelliSense to find matches in all open files including word suggestions

Created on 16 Sep 2016  ·  22Comments  ·  Source: microsoft/vscode

Feature Request:
Any vscode settings or extension that support autocomplete to find matches in all open files?
like sublime one: https://github.com/alienhard/SublimeAllAutocomplete

*extension-candidate feature-request

Most helpful comment

I just created: https://marketplace.visualstudio.com/items?itemName=Atishay-Jain.All-Autocomplete.
Can you all please try this out and leave feedback.

All 22 comments

@Vernando05 the symbol search in VS Code is accessible via Ctrl+T (or Cmd+T on Mac).

Symbol search is just for specific context/code, it's nice to have a code completion based on word that exist across files, in my case re-typing font-family value again and again is little bit annoying.

Ah ok now I understand.

This is a feature Atom seems to do that I kind of miss. Its especially useful for css/sass/less with variables that are just in the global scope, but the current file doesn't have a reference to complete them from. For example having a _variables.scss file open, and other files would be to autocomplete text from it, even without explicitly importing it (which you can't really do). This doesn't seem like something that can be made as an extension though.

Users of SublimeText know that this feature is a killer-one.
It's juste _wordBasedSuggestions_ but with words existing in all open files, and it turns out to be deadly efficient.
It's the thing I miss the most in VSCode comparing with ST.

Well, previously I created vscode-less and vscode-scss to give users more autocomplete «Symbols» from all project files.

If you want this feature – I can create this plugin. This is very simple, but you want suggestions from all open files or from all project files?

@mrmlnc wow that's nice! 😮

I suggest feature match with https://github.com/alienhard/SublimeAllAutocomplete which is
the plugin. It's auto complete from all open files.

Would be nice to elaborate if auto complete from all project files is a) running fast enough to not slow down VSCode too much (or too much CPU?) b) if it is useful or too much (don't know, never had that feature in my editors) and c) make it maybe as option if you can? 😄

But auto complete on all open files would be most important step 👍

I agree, autocomplete on all open files it is more than enough. I think can be confusing to have suggestions from all the files in the project :)

Usually when working on a feature I keep those 5/6 files open so autocompleting words from those would be very helpful.

And, as already said, It will be very helpful specially for css/html classes or other words in pseudo-code (templates, data files etcetc)

Agree with @NKjoep.
It's much better to complete with words in open files (as SublimeAllAutocomplete does), not with all project files, because it lets the user to decide the scope of autocompletion.

For exemple, with Sublime, I used to open a file with the model database definition, and an other one where I write my SQL queries. So I can benefit from completion of db fields (and I'm not polluted with all words of all project files).

+1
I'm trying VsCode coming from sublime.. It's really a blocker for me. I'm really used to https://github.com/alienhard/SublimeAllAutocomplete

+1
This is a useful feature for those languages that lack auto-completion support, for example Lua.

+1
I shifted from sublime to vscode, I am really missing this feature.
https://github.com/alienhard/SublimeAllAutocomplete

It should suggest all keywords from open files (but not from whole project)

I just created: https://marketplace.visualstudio.com/items?itemName=Atishay-Jain.All-Autocomplete.
Can you all please try this out and leave feedback.

@atishay The plugin looks fantastic! For me it's just what I want. Thanks much!

Maybe a duplicate of #5312?

@atishay Thanks dude

+1
Recently I switched from Atom to VSCode and it is one of 2 things I miss in VSCode.

Atom autocomplete also suggest in string sentence but vscode do not supported.
for Example :

User.save()
   .then((userSaved) => {
        console.log('userSaved from userAuthentication', userSaved);
    })

atom suggest userSaved in both two places in log command but vscode only suggested after comma

Any news, on this?

This problem seems still no progress

+1 from me. I really miss this feature. It is the last blocker for me to pull the trigger on VSCode! Please!

I have tried the plugin All AutoComplete for VScode, and it is just straight up broken...

We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.

Happy Coding!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sirius1024 picture sirius1024  ·  3Comments

chrisdias picture chrisdias  ·  3Comments

DovydasNavickas picture DovydasNavickas  ·  3Comments

omidgolparvar picture omidgolparvar  ·  3Comments

shanalikhan picture shanalikhan  ·  3Comments