Eclipse content assist auto appends type for variable

前端 未结 5 1843
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:27

    Based on the discussion for Eclipse Bug 412992, check your Content Assist Auto Activation settings: Window->Preferences->Java->Editor->Content Assist

    If, for example, characters a-z are listed as "Auto activation triggers for Java", you can remove them and the type name will not be auto-appended to a new variable name when you hit ' ' or ';'. It's up to you to determine the best configuration/tradeoffs for your style based on the available options.

提交回复
热议问题