Sublime Forum

How to jump to next field when pressing tab, not to commit completion

#1

English is not my native language; please excuse typing errors.

I have this line in my Preferences.sublime-settings:

"tab_completion": false

And I installed LSP extension, activated clangd.

When I open a c++ source file and type:

#include <cstdio>
#include <iostream>

using namespace std;

int main() {
  freopen
  return 0;
}

Now the cursor is after ‘n’. Then I press tab, and LSP completes like this:

freopen(const char *__restrict filename, const char *__restrict modes, FILE *__restrict stream)

Where “const char *__restrict filename” is selected. Then I type “test.in”, and “int” shows in popup menu.

Finally I press TAB. I expect to jump to the next field, however, “int” is completed.

0 Likes

#2

"auto_complete_with_fields": true enables navigation within fields using tab and shift+tab.

1 Like