From c66d3219bd85043ca5f262d92bc689a8ad80bbb2 Mon Sep 17 00:00:00 2001 From: Christopher Williams Date: Thu, 5 Jun 2014 15:49:35 -0400 Subject: [PATCH] TISTUD-6599 switch statements should not indent cases - Default to aligning switch cases with the wrapping switch. In JS that is a typical code standard. --- .../formatter/preferences/JSFormatterPreferenceInitializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/com.aptana.editor.js.formatter/src/com/aptana/editor/js/formatter/preferences/JSFormatterPreferenceInitializer.java b/plugins/com.aptana.editor.js.formatter/src/com/aptana/editor/js/formatter/preferences/JSFormatterPreferenceInitializer.java index 0b07cc18ed..e0c6eb5046 100644 --- a/plugins/com.aptana.editor.js.formatter/src/com/aptana/editor/js/formatter/preferences/JSFormatterPreferenceInitializer.java +++ b/plugins/com.aptana.editor.js.formatter/src/com/aptana/editor/js/formatter/preferences/JSFormatterPreferenceInitializer.java @@ -117,7 +117,7 @@ public void initializeDefaultPreferences() store.putInt(WRAP_COMMENTS_LENGTH, 80); store.putBoolean(INDENT_BLOCKS, true); store.putBoolean(INDENT_FUNCTION_BODY, true); - store.putBoolean(INDENT_SWITCH_BODY, true); + store.putBoolean(INDENT_SWITCH_BODY, false); store.putBoolean(INDENT_CASE_BODY, true); store.putBoolean(INDENT_GROUP_BODY, true); store.putBoolean(NEW_LINES_BEFORE_CATCH_STATEMENT, false);