Bug 419424 - [navigation] Double-click (with modifier key depressed) should select entire string including quotes
Summary: [navigation] Double-click (with modifier key depressed) should select entire ...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-15 04:28 EDT by Duncan Jones CLA
Modified: 2013-10-15 04:41 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 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.