microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.4k stars 28.62k forks source link

Support mid-word quick suggestions #173744

Open alx1024 opened 1 year ago

alx1024 commented 1 year ago

If you type "fun start" then start typing after "fun" without making a space, IntelliJ would autocomplete the keyword "function" while vscode only does it when you have "fun main" and then start typing after the word "fun" for example in JavaScript

funstart

fun start

jrieken commented 1 year ago

This issue lacks

alx1024 commented 1 year ago

@jrieken since I already made the mistake to post this issue as a bug, could you please check if it it is now correct or if doing it by editing the created issue is the right way to do it? I have not done many of these yet

mjbvz commented 1 year ago

Seems like this already works?

Screenshot 2023-02-08 at 10 33 18 AM

alx1024 commented 1 year ago

Thank you so much for taking the time to look into this:

if you leave no space between "func" and "start" and start typing after the "c", no autocompletion triggers. I always have to insert that space when i delete a part of a word and then want to start changing between two letters.

I hope these 2 GIFs can help:

vscode:

vscode

intellij:

idea

mjbvz commented 1 year ago

I believe you can still trigger suggestions manually in that case by pressing ctrl+space after typing the t (or before typing)

Screenshot 2023-02-08 at 2 07 05 PM

Do you also see this?

@jrieken Adding you back since I think this is a question about VS Code's general suggest behavior

alx1024 commented 1 year ago

Yes you are right it can be triggered this way, but when one is used to auto-trigger and just pressing "enter" this extra step takes me out of the flow when typing fast.

At first I wrote it off as a minor nuisance but it kept bothering me enough to open this issue.

Everytime I switch to IntelliJ I become aware that IntelliJ's behavior in my opinion is better in that regard and I was asking myself if this is maybe an easy fix.

VSCodeTriageBot commented 1 year ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

alx1024 commented 1 year ago

Thank you all so much!

VSCodeTriageBot commented 1 year ago

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!