question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

document the difference in behavior in code completion between selecting items with tab or enter

See original GitHub issue
class 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:open
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
devoncarewcommented, May 2, 2017

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.

2reactions
eseidelGooglecommented, Apr 24, 2017

TIL “tab-complete” and “return-complete” are different things in IntelliJ. And command-shift-return-complete is a whole 'nother can-o-worms.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found