What is the Auto-Alignment Shortcut Key in Eclipse?

后端 未结 5 2153
猫巷女王i
猫巷女王i 2020-12-07 07:21

What is the auto-alignment shortcut key in Eclipse?

相关标签:
5条回答
  • 2020-12-07 08:10

    Auto-alignment? Lawful good?

    If you mean formatting, then Ctrl+Shift+F.

    0 讨论(0)
  • 2020-12-07 08:10

    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.

    0 讨论(0)
  • 2020-12-07 08:11

    auto-alignment shortcut key Ctrl+Shift+F

    to change the shortcut keys Goto Window > Preferences > Java > Editor > Save Actions

    0 讨论(0)
  • 2020-12-07 08:22

    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

    0 讨论(0)
  • 2020-12-07 08:26

    Ctrl+Shift+F to invoke the Auto Formatter

    Ctrl+I to indent the selected part (or all) of you code.

    0 讨论(0)
提交回复
热议问题