1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Smart home/end is now handled by general text editor

This commit is contained in:
Anton Leherbauer 2007-01-10 08:54:50 +00:00
parent d1f3db33d8
commit 095910e7bf
2 changed files with 1 additions and 11 deletions

View file

@ -77,17 +77,6 @@ public class CEditorPreferencePage extends AbstractPreferencePage implements IWo
}
public static void initDefaults(IPreferenceStore store) {
// bug 84414: enable smart home/end handling
// This is a hidden feature of the Eclipse TextEditor:
// If enabled, the HOME button positions the cursor to the first
// non-whitespace character of the line (ie. the logical start of
// the line). Pressing it a second time, positions the cursor to the
// first character of the line, ie. to the physical start of the line.
// The END button works correspondingly for the end of the line.
// JDT also enables this feature.
store.setDefault(AbstractTextEditor.PREFERENCE_NAVIGATION_SMART_HOME_END, true);
store.setDefault(CEditor.SUB_WORD_NAVIGATION, true);
store.setDefault(CEditor.MATCHING_BRACKETS, true);

View file

@ -87,6 +87,7 @@ public class CUIPreferenceInitializer extends AbstractPreferenceInitializer {
store.setToDefault(AbstractTextEditor.PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT);
store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE);
store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SMART_HOME_END);
}
}