What is the auto-alignment shortcut key in Eclipse?
相关问题
- Eclipse and Mylyn : how to disable grey files in t
- Installing Pydev for Eclipse throws error
- Error in Scala Compiler: java.lang.AssertionError:
- Align typography component to the right
- How to remove unused imports using Eclipse and not
相关文章
- selenium+eclipse 打开网页时报错
- Eclipse failing to open
- Eclipse how can I indent C++ preprocessor macros
- Why is FindBugs ignoring my check for null?
- Eclipse cleanup - what are the “.index” files - ca
- Eclipse plugin to find out unused methods in a cla
- Spring NamespaceHandler issue when launching Maven
- Google USB Package isn't showing in SDK Manang
Auto-alignment? Lawful good?
If you mean formatting, then Ctrl+Shift+F.
The answer that the OP accepted is wildly different from the question I thought was asked. I thought the OP wanted a way to auto-align
=
signs or+
signs, similar to the tabularize plugin for vim.For this task, I found the Columns4Eclipse plugin to be just what I needed.
Ctrl+Shift+F to invoke the Auto Formatter
Ctrl+I to indent the selected part (or all) of you code.
Want to format it automatically when you save the file???
then Goto Window > Preferences > Java > Editor > Save Actions
and configure your save actions.
Along with saving, you can format, Organize imports,add modifier ‘final’ where possible etc