- Enchanted spell check support camelcased java variable method name。
A small patch on org.eclipse.jdt to support some feature needed by everybody.
Patch default spelling engine to support check java package ,class ,method ,variable declaration and also support camel case. spelling support camel case
We can check:
package declaration(last segment)
class, method,parameter name
Note: We only check declaration part in order to minimum developer's attention. We ignore:
method with @Override
note Sine spelling checker can not get AST of java file. I have to use three regular expression pattern to match package,class name,method name and variable. So there maybe some performance problem if file is large.
some usefule code template for java
type newlist and hit content assistant key (alt+/ or ctrl+space) and select newlist template and code will show:
List V = new ArrayList(10);
Map map = new HashMap(10);
Set set = new HashSet(10);
//create static slf4j logger for class,and automatic import org.slf4j.Logger,org.slf4j.LoggerFactory
//create @Test method,and automatic import org.junit.Assert.* ,org.hamcrest.Matchers