com.intellij.psi.codeStyle.CodeStyleSettings# END_OF_LINE 源码实例Demo

下面列出了com.intellij.psi.codeStyle.CodeStyleSettings# END_OF_LINE 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: BashSupport   文件: FormatterTest.java

protected void setUp() throws Exception {
    super.setUp();
    myTempSettings.CLASS_BRACE_STYLE = CodeStyleSettings.END_OF_LINE;
    myTempSettings.METHOD_BRACE_STYLE = CodeStyleSettings.END_OF_LINE;
    myTempSettings.BRACE_STYLE = CodeStyleSettings.END_OF_LINE;

    BashProjectSettings projectSettings = BashProjectSettings.storedSettings(getProject());
    projectSettings.setFormatterEnabled(true);
}
 

protected void setUp() throws Exception {
    super.setUp();
    myTempSettings.CLASS_BRACE_STYLE = CodeStyleSettings.END_OF_LINE;
    myTempSettings.METHOD_BRACE_STYLE = CodeStyleSettings.END_OF_LINE;
    myTempSettings.BRACE_STYLE = CodeStyleSettings.END_OF_LINE;

    BashProjectSettings projectSettings = BashProjectSettings.storedSettings(getProject());
    projectSettings.setFormatterEnabled(false);
}