Java Code Examples for com.intellij.psi.codeStyle.CodeStyleSettings#END_OF_LINE

The following examples show how to use com.intellij.psi.codeStyle.CodeStyleSettings#END_OF_LINE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FormatterTest.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example 2
Source File: DisabledFormatterTest.java    From BashSupport with Apache License 2.0 5 votes vote down vote up
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);
}