Bug 419424

Summary: [navigation] Double-click (with modifier key depressed) should select entire string including quotes
Product: [Eclipse Project] JDT Reporter: Duncan Jones <eclipse>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert
Version: 4.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Duncan Jones CLA 2013-10-15 04:28:15 EDT
Currently, double-clicking on a string in the Java editor will select the word within the double quotes. It would be great if the editor made it easier to select the entire string (including double-quotes) when required.

This behaviour could be tied to a control key such as Alt, such that if the user double-clicks on the string with Alt depressed, the entire string is selected.

Examples of current behaviour when double-clicking (where "[]" indicates selection):

1. "[foo]"

2. "[foo]-bar" (or "foo-[bar]")

Examples of desired behaviour when double-clicking (when combined with modifier key):

1. ["foo"]

2. ["foo-bar"]
Comment 1 Dani Megert CLA 2013-10-15 04:41:15 EDT
Note that Edit > Expand Selection To > Enclosing Element (Alt+Shift+Up) does exactly that.