document the difference in behavior in code completion between selecting items with tab or enter
See original GitHub issueclass Thing {
int firstOne;
int secondOne;
Thing(this.secondOne);
}
Place your cursor between ‘Thing(’ and ‘this’ i.e. Thing([CURSOR]this.secondOne)
Type this.
, press Tab
and notice how you end up with:
Thing(this.firstOne.secondOne);
instead of Thing(this.firstOne[CURSOR]this.secondOne);
Or maybe even better would be Thing(this.firstOne, [CURSOR]this.secondOne);
since it should be able to tell what I’m doing. 😃
@pq told me to start filing these cases where IntelliJ autocomplete unexpectedly eats things after my cursor.
I feel like I’m used to other auto-complete systems never affecting anything after my cursor, but maybe I’m remembering wrong?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
IntelliSense in Visual Studio Code
The editor supports "tab completion" which inserts the best matching completion when pressing Tab. This works regardless of the suggest widget showing or...
Read more >Code Completion | JetBrains Rider Documentation
Hard selection (blue in most color themes) lets you insert the selected item with Enter , Tab , Space , as well as...
Read more >IntelliJ autocompletion replacing the subsequent word
This behavior depends on the key that you use to select the item from the completion list. If you press Enter, the selected...
Read more >IntelliSense in Visual Studio - Microsoft Learn
To toggle between completion mode and suggestion mode, press Ctrl+Alt+Space, or choose Edit > IntelliSense > Toggle Completion Mode.
Read more >Auto-completion - Notepad++ User Manual
For instance, if you're coding in JavaScript and type syn , Notepad++ can present synchronized (a JavaScript keyword) as a suggestion. You accept...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the resolution here is to better document that there’s a difference in behavior in how you select items from the completion dialog.
TIL “tab-complete” and “return-complete” are different things in IntelliJ. And command-shift-return-complete is a whole 'nother can-o-worms.