-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Put snippets at the bottom of suggestions until typing #66621
Comments
(Experimental duplicate detection) |
So, the default is to re-sort items based on how well they match as soon as you start typing. That's why the default is 'inline'. With that, the prefix |
@jrieken No, it will not put the if-snippet on top unless you've selected to always show snippets at the top. With the setting "inline", it looks like this: Which is useless for situations where you're looking to execute a snippet. That's why I've chosen the "top" option, because when I type "if", I always want the snippet, not that other thing that also matches "if". So the problem is that now I always get snippets on top, even in situations where I haven't typed anything. Get the problem? |
Well, I'd say that true for all duplicated suggestions. Sometimes there are duplicates and tbh you best wait for #45039 which is about filtering certain types of suggestions, e.g. |
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
#45039 wont solve my problem at all. I'm looking for a far simpler solution: There are two events that can trigger the suggestions list to show: a: typing something For scenario a, it works fine right now. For scenario b, the user is clearly not looking for a snippet, so dont show them until she has typed in a letter. I speak for at least ten other guys at our office who use VS Code when I say that this would be a huge improvement. |
If you're desperate you can try to temporarily set config before invoking the suggest. You'll need 2 extensions for that: one to set settings and another to run multiple commands. And Macro would be:
|
Currently with version 1.53. When setting |
Today I can choose to have snippets either at the top or at the bottom of the suggestions list. In order to have them quickly accessible, you need to have the
editor.snippetSuggestions
setting totop
. Here is an example using theif
snippet. Image if I didn't have the setting valuetop
, then the if-snippet wouldn't be the highlighted item, resulting in a very slow workflow:However, when I hit ctrl+space to see suggestions for what I am allowed to do in a given context, then it's just annoying that the snippets are shown first in the list. In this example, the suggested items with blue icons are what I'm after:
Feature request: hide the snippets from the list of suggestions unless you've started typing. Or at least add a new option to the
editor.snippetSuggestions
calledtopWhenPrefixMatches
or something.This issue addresses the problem, but proposes a different solution that I don't really agree with:
#62236
The text was updated successfully, but these errors were encountered: