Code samples: Change the CONTINUATION_INDENT_SIZE from 8 to 4 and reformat code.

We use INDENT_SIZE = 2 and continuation size should be at most 4 in this case.
This commit is contained in:
Karol Lewandowski 2023-09-07 11:59:58 +02:00
parent 436664b23f
commit c37b34729e
44 changed files with 236 additions and 230 deletions

View File

@ -19,6 +19,7 @@
<option name="WRAP_ON_TYPING" value="0" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>

View File

@ -18,6 +18,7 @@ import java.awt.*;
* Manages validation and modification of the {@link DemoFacet} state.
*/
public class DemoFacetEditorTab extends FacetEditorTab {
private static final String FACET_PANEL_PROMPT = "Path To SDK: ";
private final DemoFacetState mySettings;

View File

@ -13,6 +13,7 @@ import org.jetbrains.annotations.Nullable;
import javax.swing.Icon;
public class SimpleStructureAwareNavbar extends StructureAwareNavBarModelExtension {
@NotNull
@Override
protected Language getLanguage() {

View File

@ -39,4 +39,5 @@ public class SimpleStructureViewModel extends StructureViewModelBase implements
protected Class<?> @NotNull [] getSuitableClasses() {
return new Class[]{SimpleProperty.class};
}
}

View File

@ -102,5 +102,7 @@ public class CalendarToolWindowFactory implements ToolWindowFactory, DumbAware {
public JPanel getContentPanel() {
return contentPanel;
}
}
}