Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Stop suggesting camelCaseVaribleNames for new variables.
Stop suggesting camelCaseVaribleNames for new variables. [message #1142454] Thu, 17 October 2013 12:34 Go to next message
Eclipse UserFriend
This StackOverflow post succinctly describes my issue: stackoverflow.com/questions/15595048/how-to-disable-non-type-proposals-in-eclipse/: I don't want Eclipse to suggest variable names for new variables.

However, the proposed solution (as noted) of disabling "Java Non-type proposals" and "Java proposals" in the "Content Assist ->Advanced" menu also causes Eclipse to stop suggesting existing variables in scope.

For example, Eclipse will NOT suggest "foo" in the following situation (in fact, it won't suggest anything):

String foo = "bar";
// ...
String f
        ^


This is nuts! I do not want Eclipse to suggest names for new variables. I'd like to name them myself. I'd like to turn just that feature off, but seem to be unable to do so.

Is there any way to accomplish this while still receiving suggestions for existing, in-scope, already-defined variables?

Eclipse Standard/SDK

Version: Kepler Service Release 1
Build id: 20130919-0819
Re: Stop suggesting camelCaseVaribleNames for new variables. [message #1142648 is a reply to message #1142454] Thu, 17 October 2013 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Your post is confusing. You say that you don't want Eclipse to suggest names for new variables but then give an example where you expect Eclipse to suggest a name for a new variable. In your example, the String f line is defining a new variable. You indicate that you want Eclipse to automatically call this variable foo. In the context that you provided, naming the new variable foo would not be valid Java code and would cause a compilation error since you can't define the variable foo twice.
Re: Stop suggesting camelCaseVaribleNames for new variables. [message #1214551 is a reply to message #1142454] Wed, 27 November 2013 13:56 Go to previous message
Eclipse UserFriend
The stack overflow post describes it pretty well.

We don't want Eclipse to suggest variables names to us,
i.e. if we type
"String foo"
and then hit space, Eclipse will have suggested foo be called "fooString" and our variable will end up getting that name.

However we want to retain the functionality that was in previous versions of Eclipse where if we have defined a variable.

String foo = "bar";

and start to type foo later on...

"f"

Eclipse will automatically bring up "foo" as a possible auto-complete.

It appears in the preferences that we either have to use both features or none of them. There is no way to turn off variable name suggestions by themselves?
Previous Topic:Eclipse not working at the Start.
Next Topic:annotation processing - dependencies in source files => builder
Goto Forum:
  


Current Time: Thu Apr 24 23:26:05 EDT 2025

Powered by FUDForum. Page generated in 0.03231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top