It would be great if there's an option for (auto-completion):
Or vice-versa.
Thanks,
not sure if I understand that. @haibison can you clarify what the different between _replace the rest_ and _insert into current care pos_ means?
Hi @jrieken,
Thanks. I mean, for example here's the content I'm typing (the pipe is the caret):
someFunc|Abc
And the auto-completion list offers someFunction. Then:
Abc with tion, so it would become someFunction.tion into the caret position, so it would become someFunctionAbc.If there's a white space after the caret, then either Tab or Enter will just insert the offered text into current caret position (which is current behavior).
Understood, thanks for clarifying
We could provide two different commands here and use the keybindings as a way for the user to customise the behaviour.
Yeah - tho we need to think what is means wrt text edits completion providers describe. Technically they can already do this (just select the corresponding range)...
@jrieken How are we on this?
Eclipse has a setting for this, where you can choose to replace or insert. If you choose to insert, you stil can hit ctrl + enter to replace.
Android Studio (or IntelliJ in general?) has the same feature, where tab replaces and enter inserts as much as I remember.
It would be nice, if we could have it in vscode too :)
We need this feature. It's very annoying, especially when Visual Studio 2017 allows this behavior and VS Code does not.
actually related (maybe same) to #10266
Yeah, replace on tab and insert on enter, i'm lacking this feature too
/duplicate of #10266
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.
Happy Coding!
Why is it that the older issue is the one marked as duplicate? I would expect that newer issues duplicating existing issues would be the ones marked as duplicates.
@jrieken Is this really a duplicate? Has this been implemented? I would expect "editor.suggest.insertMode" to have a third option like replaceWhenTab to allow both behaviors, like in Android Studio. So that I can choose to insert with ENTER or replace with TAB.
Most helpful comment
Eclipse has a setting for this, where you can choose to replace or insert. If you choose to insert, you stil can hit ctrl + enter to replace.
Android Studio (or IntelliJ in general?) has the same feature, where tab replaces and enter inserts as much as I remember.
It would be nice, if we could have it in vscode too :)