void () { init("<caret>line 1\n" + "line 2", PlainTextFileType.INSTANCE); setEditorVisibleSize(100, 100); final EditorSettings editorSettings = getEditor().getSettings(); final boolean old = editorSettings.isCaretInsideTabs(); try { editorSettings.setCaretInsideTabs(true); executeAction("EditorPageDownWithSelection"); checkResultByText("<selection>line 1\n" + "line 2<caret></selection>"); } finally { editorSettings.setCaretInsideTabs(old); } }