Auto complete instead of new line on line end
Problem
This is known issue that, when you type text and want to enter new line by hitting Enter on a line end, you get autocompleted text shown to you in Code Hint (can be something from already typed text, code template etc).
Example: - you type on empty line “else” (in PHP) - you type rather fast and Hit Enter to add a new line - instead of a new line, you get “elseif” typed
Reason: You maybe have not noticed, but editor suggested you a completion in Code Hint tooltip, and when you hit Enter, editor recognized this as “Code Hint Agree” command and inserts completion.
Solution
Actually, there is no 100% nice solution.
But some workarounds:
- This can be adjusted by delaying timeout when Code Hint is shown, so you can hit Enter before Code Hint appear.
- You can remove Enter from Code Hint Agree keys, so that you can accept Code Hint only by Tab.
- You can disable Code Hints at all
If you have a good idea, how to solve the issue better, send us a proposal