3 ms·
If you have multiple tables, how do you avoid suggesting a wrong column, before filling out the table name? You could suggest all columns up front, and then af
by refactor_master 4y ago
If you have multiple tables, how do you avoid suggesting a wrong column, before filling out the table name?
You could suggest all columns up front, and then afterwards tell the user “this suggestion doesn’t exist”, which would just erode trust in the autocomplete.
- kaba0 4y agoStart typing “SEL”, ide suggests “SELECT _ FROM”, you press enter and the above text is entered, while the cursor is placed after from. You write that part of the query and after pressing enter it will jump back to the select part. This is done already by Jetbrain’s datagrip for example.
- taeric 4y agoSuggest all. And with modern UIs, you can hint the table with the column.