Bug 43364 [typing] new line insertion sometimes goes wrong!
try and put a new line between the two variable declarations. It will shift the second variable declaration to line up with "c". ------------------------------------------------------------ public class A { private static final String[] var = new String[] { "a", "b", "c", "d"}; private static final int var2 = 4; //press enter at beginning of this line } ------------------------------------------------------------
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java
spaces++;
			
			if (spaces == tabLen)
				ret.append('\t');
			else
				while (spaces-- > 0)
					ret.append(' ');
			
		} catch (BadLocationException e) {
		}
		
		return ret.toString();
	}
	/**
	 * Creates a string that represents the given number of indents (can be spaces or tabs..)
	 * @param indent the requested indentation level.
	 * 
	 * @return the indentation specified by <code>indent</code>
	 */
	private String createIndent(int indent) {
		
		if (JavaPlugin.getDefault() == null) {
			StringBuffer ret= new StringBuffer();
			while (indent-- > 0)
				ret.append('\t');
			
			return ret.toString();
		}
			
		return CodeFormatterUtil.createIndentString(indent);