Eclipse 中的自动对齐快捷键是什么?
Ctrl + Shift + F to invoke the Auto Formatter
Ctrl + I to indent the selected part (or all) of you code.
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.
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
auto-alignment shortcut key Ctrl
+ Shift
+ F
to change the shortcut keys Goto Window > Preferences > Java > Editor > Save Actions
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.