I would like to reformat a single line or possibly multiple lines, similar to how Code->AutoIndentLines , except I don't want the caret to move down a line.
I tried using CodeStyleManager.adjustLineIndent(psifile,line) but that didn't do anything.
I tried using CodeStyleManager.reformatRange(psifile,lineOffsetBegin,linePlusOneOffsetBegin);
and that didn't do anything.
I also played with CodeStyleManager.isLineToBeIndented(psifile,line) but it always seems to return false no matter if the caret is on an improperly indented line or not.
Since there aren't any javadocs for com.intellij.psi.codeStyle, it's hard to figure out want some of the parameters or return values are.