void () { final CodeStyleSettings settings = CodeStyle.getSettings(getProject()); final CommonCodeStyleSettings.IndentOptions options = settings.getIndentOptions(JavaFileType.INSTANCE); options.USE_TAB_CHARACTER = true; options.SMART_TABS = true; doTest(""" /*File 'X.java' uses spaces for indentation*/class X { \tvoid aaa(boolean a, boolean b, boolean c) { \t\taaa(true, \t \t true, \t\t true); \t} } /**/"""); }