Bug 415085 - [key binding][preferences] Add short-cuts for switching between formatter profiles
Summary: [key binding][preferences] Add short-cuts for switching between formatter pro...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 12:40 EDT by Bill Chen CLA
Modified: 2013-08-15 06:34 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Chen CLA 2013-08-14 12:40:50 EDT
I work with code from many teams that are formatted differently, so a common chore everyday is to switch between formatter profiles (at least 5 mouse clicks each time). Thus it would be extremely useful if keyboard short-cuts can be assigned to individual formatter profiles.

It can also be useful if there is a toolbar with a drop-down box that can allow me to visually select the profiles.
Comment 1 Dani Megert CLA 2013-08-15 03:09:22 EDT
To reformat the project(s) to your liking is a bad idea as it messes up quick diff, stack traces etc. And, when committing the changes you'll have to revert the formatting (I guess).

What you really want is bug 45423.
Comment 2 Bill Chen CLA 2013-08-15 06:34:41 EDT
I actually want the short-cuts for the very reason you said. Each team has their own style and I have to constantly switch between the different formatter profiles to match the file I am editing.

Thinking about this, instead of (or in addition to) a short-cut, it could also be helpful to have the ability to specify a formatter profile for each individual file.