void () { initText(""" \tone two\s hi<caret>\s \tthree four\s"""); int tabSize = getEditor().getSettings().getTabSize(getProject()); getEditor().getSettings().setCaretInsideTabs(true); executeAction("EditorCopy"); executeAction("EditorLineStart"); getEditor().getCaretModel().moveToVisualPosition(new VisualPosition(1,0)); getEditor().getCaretModel().addCaret(new VisualPosition(0,0)); getEditor().getCaretModel().addCaret(new VisualPosition(0,1)); getEditor().getCaretModel().addCaret(new VisualPosition(0, tabSize)); getEditor().getCaretModel().addCaret(new VisualPosition(2,0)); getEditor().getCaretModel().addCaret(new VisualPosition(2,1)); getEditor().getCaretModel().addCaret(new VisualPosition(2, tabSize)); checkResultByText(""" <caret><caret>\t<caret>one two\s <caret> hi\s <caret><caret>\t<caret>three four\s"""); executeAction("EditorPaste"); checkResultByText(""" hi\s hi\s hi\s <caret><caret>\t<caret>one two\s hi\s <caret> hi\s hi\s hi\s hi\s <caret><caret>\t<caret>three four\s"""); }