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(""" class X {static{ \tSystem.out.println("asdf" + \t\t\t "asdf"); }}"""); }