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" /> <option name="WRAP_ON_TYPING" value="0" />
<indentOptions> <indentOptions>
<option name="INDENT_SIZE" value="2" /> <option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="2" /> <option name="TAB_SIZE" value="2" />
</indentOptions> </indentOptions>
</codeStyleSettings> </codeStyleSettings>

View File

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

View File

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

View File

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

View File

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