Bug 371206

Summary: Feature Request: Capitalize Selected Text
Product: [Eclipse Project] JDT Reporter: Ted Cohen <eclipse>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert
Version: 3.8Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ted Cohen CLA 2012-02-10 06:39:34 EST
There are three parts to this feature request, all involve changing the case of selected text in the same manner that  "upper case" and "lower case" do. Each of the three commands work only on selected text. Unless there is a strong objection, I would say that if any part of a word is selected, treat the word as if it was all selected. If there are objections, I don't mind if you either operate only on selected text or if you ignore words that are only partially selected. As long as it is consistant, I can live with any of the three options.

The first command is "proper case" which is pretty easy to do in English but may be more difficult in other languages. The first character of most words is made upper case, all other characters are made lower case. The exception to the first chatacter upper case are articals such as a/in/of/the.

The second command is "capitalize". Although much less important than "proper case", it is much easier to code. With this command, the first letter of every word is capitalized and the subsequent characters are made lower case no matter what the word is.

The third command is "invert case". If a character is lower case, make it upper, if it is upper, make it lower. For this command, I would say to only operate on the exact selection, rather than extending it to include full words. This command is the least important of the three, but I actually have used it and it is trivial to code.