6

I would like to disable the autocompletion of putting the variable type after a variable name when declaring new variables. Although this may seem like a viable option for most, the naming conventions where I work do not allow this. I am sure this is a simple option to deselect, but I just can not seem to locate it.

Thank you in advance.

E-Z
  • 247
  • 1
  • 7

2 Answers2

3
  1. Menu Window -> Preferences -> Java -> Editor -> Content Assist

  2. Uncheck Insert single proposals automatically enter image description here

  3. Click apply.

Tomasz
  • 5,269
  • 8
  • 56
  • 65
  • 3
    Tested on STS 3.3.0 unfortunately this does not prevent variable name autocomplete automatically activating although there's onliy single proposal – gerrytan Nov 28 '13 at 01:48
0

Follow the below menu to chage settings for content assist (eclipse v3.8.X)

window -> preferences -> java -> editor -> content assist -> advanced
fmucar
  • 14,361
  • 2
  • 45
  • 50
  • 1
    I got exactly the same problem than E-Z, I see that the answer is validated, But in the "Advanced" screen is just a screen with many things to check or uncheck. What to be cheked or unchecked to stop the behaviour ? – taharqa Oct 24 '13 at 16:30
  • what version of eclipse are u using? – fmucar Oct 26 '13 at 17:12
  • I'm using Eclipse Kepler on Windows7 64 bit and Ubuntu 64 Bits. The behaviour I have is that I canno't remove the type suffix stuff without removing ALL java completions proposal. – taharqa Oct 28 '13 at 17:55
  • The behaviour seems to have changed over the years. Above is for eclipse v3.8 series. – fmucar Oct 30 '13 at 00:04