[SOLVED] Editor: Suggested word destroy the next word

Answered

If, for example, I have a method:

static Mymethod ()

And I want to add the word "private" in front of it:

  1. I position the cursor in front of the beginning of the word "static"
  2. I type "p" and after I hit Tab
  3. This erases the word "static" and switches it to "private".

In this case I'm always required to manually insert a space before the word on the right, to prevent it from being deleted.

The correct thing would be that the word on the right was not deleted.
How to fix this?

0
3 comments

Tab will replace the word, Enter will add the word before. This behavior is by design so that you can choose the completion type depending on the situation.

1
Avatar
Permanently deleted user

Thank you very much!

0

Ive had this issue for years. I thought it was probably some plugin I had installed and that I'd probably never be able to figure out what was causing this seemingly unexpected, unintuitive behavior. Not sure I understand this:

This behavior is by design so that you can choose the completion type depending on the situation.

Why isnt the default behavior (the most inutive to other tab actions in JB (as well as many other apps)  to switch this and for tab to auto insert the word without deleting the next word and for enter to allow you to choose the completion type - assuming its not the first one in the suggeted list? 

0

Please sign in to leave a comment.