| Summary: | [formatting][typing] Formatted/smart paste for Java | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Nathan Reynolds <numeralnathan> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert, deepakazad |
| Version: | 3.8 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Nathan Reynolds
Are you aware of 'Preferences > Java > Editor > Save Actions'? You can use Save actions to auto-format edited code on every save. Hence, after pasting unformatted code, press Ctrl+S => Code is formatted. With the save action available, do you really need Format on paste? This would require that I hit Ctrl+V and Ctrl+S every time I want to paste. Also, I don't turn on auto-format with every save because the format rules can't format my code exactly how I like to read it. So, yes, format on paste is very important because the formatting is only applied to the block I am pasting and then I can fix any thing that the formatter didn't. We already do the auto-indenting. Besides that format on save can be narrowed to changed lines only. |