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 { \tString s; } /**/"""); }