Community
Participate
Working Groups
Sometimes comments are not deindented when pressing shift tab For the following code: * Ctrl+A * Shift+tab * Notice how the first comment is not deindented public class A { // Why no deindent? public int a; // hey /* * no hey */ } Having ran this through a debugger the error appears to surface in org.eclipse.jface.text.TextViewer.shift(boolean, boolean, boolean). The issue here is that the startline that's being calculated for the first SL comment is 2 instead of 1, the endline is 1 as it should be. P.S.: Since this appears to be a JFace bug I'm not sure I'm reporting this in the correct place.