Eclipse content assist auto appends type for variable

前端 未结 5 1845
Happy的楠姐
Happy的楠姐 2021-01-04 03:58

I just started to use Juno for a couple of days, the content assist mechanism seems different from what it behaves before.

For example, if I try to declare a variabl

5条回答
  •  生来不讨喜
    2021-01-04 04:20

    This is still a problem in Eclipse 2018-12 and it only seems to occur if you changed the Auto activation triggers for Java setting to e.g. ._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ, which'll make the Content Assist (almost) always pop up, even without pressing Ctrl+Space (Windows).

    There's a new setting that was added in Eclipse 2018-12 and makes it a bit less annoying (mentioned in the comments below the bug report):

    In Window - Preferences - Java - Editor - Content Assist tick the Disable insertion triggers except 'Enter' box.

    With this setting enabled, Content Assist is still going to trigger (depending on the other settings) but you have to press Enter to accept a suggestion.

提交回复
热议问题