Autocompletion of function arguments with Tab key not working as expected
cschreib opened this issue · 3 comments
System info:
- Sublime Text version: 3.2.2 build 3211
- Which system are you on: Linux Mint 19.3
- Clang version: 10.0.0-4ubuntu1~18.04.2
What happens:
When I autocomplete a function, EasyClangComplete autocompletes the arguments based on the function signature, and highlights the first argument for me to overwrite. Usually I want to start typing the name of a local object and have it autocomplete too, like so:
void foo(int argument1, int argument2) { /*...*/ }
void main() {
int cats_number = 6;
int dogs_number = 2;
foo(cats_|, argument2);
}
Here I typed cats_
and want it to autocomplete to cats_number
. Normally I would just type this, select cats_number
from the drop down list, and hit "Tab". However, EasyClangComplete takes this as a command to go to the next function argument. It doesn't autocomplete cats_
, just leaves it there. I can get it to work by hitting "Enter" instead of "Tab", but that's going against my usual workflow :)
Could you make it so that "Tab" and "Enter" have the same behavior in this situation?
NB, this issue is a duplicate of #371, which was unfortunately closed by its author without explanation.
(FYI: opening this issue here after your message on Package Control. I only use your plug-in at home on my spare time, after being corrupted at work by Visual Studio and its Intellisense that I didn't know I needed before I used it...)
It does, thank you! I had to set both auto_complete_commit_on_tab
and auto_complete_with_fields
to true
.
Sorry, I thought this was an ECC issue because this is the only context where I had the problem happen, I didn't realize this was a core Sublimetext issue! Weird how the documentations of the settings say that setting this to true
is a superior solution, yet this is not the default.
Awesome! Glad it is resolved. I might want to add this info to the docs though...