tip, spaces only, shortcut
1.Spaces Only (no tab) In Eclipse:
[list]
[*]Window->Preferences->Editors->Text Editors->Insert spaces for tabs
[*]Window->Preferences->Java->Code Style->Formatter->Edit->Indentation = "Spaces Only"
[*]Window->Preferences->C/C++->Code Style->Profile->Edit->Tab Policy = "Spaces Only"
[/list]
2. Use Code Template:
[list]
[*]Source(Menu) > Surround With > Configure Template. Check the template you want to use.
[*]In code editor, type in the first letter of the template name, then invoke the "Code Complete(usually Ctrl+Space)". If Ctrl+Space triggers out your input method, then you need to disable the input method shortcut (only through IME tool, 'cause your change in the input method settings will be restored once you closed the dialog) or change the shortcut in Eclipse
[/list]
3. Clear Useless Workspace Entries:
[list]
[*]Open and edit "eclipse\configuration\.settings\org.eclipse.ui.ide.prefs"
[/list]
1.Spaces Only (no tab) In Eclipse:
[list]
[*]Window->Preferences->Editors->Text Editors->Insert spaces for tabs
[*]Window->Preferences->Java->Code Style->Formatter->Edit->Indentation = "Spaces Only"
[*]Window->Preferences->C/C++->Code Style->Profile->Edit->Tab Policy = "Spaces Only"
[/list]
2. Use Code Template:
[list]
[*]Source(Menu) > Surround With > Configure Template. Check the template you want to use.
[*]In code editor, type in the first letter of the template name, then invoke the "Code Complete(usually Ctrl+Space)". If Ctrl+Space triggers out your input method, then you need to disable the input method shortcut (only through IME tool, 'cause your change in the input method settings will be restored once you closed the dialog) or change the shortcut in Eclipse
[/list]
3. Clear Useless Workspace Entries:
[list]
[*]Open and edit "eclipse\configuration\.settings\org.eclipse.ui.ide.prefs"
[/list]