Bug 330157

Summary: [typing] Add command to quote selected text
Product: [Eclipse Project] Platform Reporter: Lee Campbell <leetncamp>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: ankur_sharma, curtis.windatt.public, daniel_megert
Version: 3.6.1Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Lee Campbell CLA 2010-11-12 18:08:51 EST
Build Identifier: M20100909-0800

This is a feature request.  It's not clear if you make  a distinction between bug and feature requests. (pardon if I'm in the wrong place)

I am a new user from NetBeans where if you select text and press a left parens, or a quote, the selected text is quoted.  Eclipse replaces the selected text with the new quotes.  It would be nice to have a preference for this feature.

Reproducible: Always

Steps to Reproduce:
1.Select text
2.Press the ' key.
3.
Comment 1 Dani Megert CLA 2010-11-15 10:18:57 EST
Note that in the Java editor, it can insert the closing quotes automatically, e.g. type
"foo
to get
"foo".

For the Java editor you can also add a template, e.g. "${word_selection}" which can be used to quote the selection.


Is this request for all editors or just the Java editor?
Comment 2 Ankur Sharma CLA 2010-11-18 02:08:56 EST
I like the idea. The behavior should be available only in Java and XML editors though.
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:04:25 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.