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

Allow intellisense suggestions to be filtered by the user #45039

Closed
martaver opened this issue Mar 5, 2018 · 9 comments
Closed

Allow intellisense suggestions to be filtered by the user #45039

martaver opened this issue Mar 5, 2018 · 9 comments
Assignees
Labels
feature-request Request for new features or functionality on-testplan suggest IntelliSense, Auto Complete
Milestone

Comments

@martaver
Copy link

martaver commented Mar 5, 2018

Currently, Visual Studio Code (as of 1.20.1) offers helpful hints on common language keywords like for and class and enum (I'm using Typescript). I don't need assistance with these words - they're just noise, blocking me from seeing more relevant entries.

I would like to selectively choose what suggestions VSCode offers me - e.g. I'm more interested in what locals and imports are available than being spammed by language keywords. I think being able to go to user/workspace settings and flip on/off any of the suggestions types listed here would be perfect.

Strikes me as something that might be easily achievable too.

@jrieken jrieken added feature-request Request for new features or functionality suggest IntelliSense, Auto Complete labels Mar 6, 2018
@martaver
Copy link
Author

martaver commented Mar 6, 2018

This issue was created as result of question on StackOverflow here:
https://stackoverflow.com/questions/49105475/how-can-i-disable-vscodes-suggestions-for-language-keywords

@hvdklauw
Copy link

hvdklauw commented Jun 1, 2018

Some option to filter/search based on snippet provider would be really good, now I have to either memorize all the snippets, have a cheatsheet printed on my desk (ಠ_ಠ) or go to the readme of the plugin all the time to figure out the correct snippet.

@kentcdodds
Copy link

Even an option to disable a particular suggestion type from this list would be nice:

image

I'd immediately disable at least "Keywords"

Would be cool if I could provide an array of the types of suggestions I want and the order of the array would represent the order of the suggestions.

@alexsasharegan
Copy link

I agree with @kentcdodds that filtering out keywords would be an instant improvement in daily usage of intellisense suggestions.

In every function & import I write, I must consciously avoid the keyword suggestions to get to my snippets, but if I remember correctly, pushing snippets to the top hides the really good suggestions on dot completion. It's been a while since I fiddled with this, so I apologize if that's inaccurate.

@jrieken
Copy link
Member

jrieken commented Mar 7, 2019

I have added a setting editor.suggest.filteredTypes which accepts an object with true/false values for each completion type. This can also be configured per language:

screenshot 2019-03-07 at 18 16 01

@jrieken
Copy link
Member

jrieken commented Mar 7, 2019

This will be available in tomorrows 1.33 insiders build: https://code.visualstudio.com/insiders/

@jrieken jrieken closed this as completed Mar 7, 2019
@kentcdodds
Copy link

This is awesome! Does this also allow you to choose the order as well?

@regs01
Copy link

regs01 commented Mar 18, 2019

I hope keywords will still show up by default, as it's going to be very uncomfortable and inconsistent to type all keywords fully without ability to finish them with Enter, just like everything else.

@martaver
Copy link
Author

martaver commented Mar 18, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality on-testplan suggest IntelliSense, Auto Complete
Projects
None yet
Development

No branches or pull requests

7 participants
@hvdklauw @kentcdodds @jrieken @martaver @regs01 @alexsasharegan and others