void () { final CodeStyleSettings settings = CodeStyle.getSettings(getProject()); settings.getIndentOptions(JavaFileType.INSTANCE).USE_TAB_CHARACTER = true; doTest(""" /*File 'X.java' uses spaces for indentation*/class X { String s; } /**/"""); }