Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365495

Summary: Enable Visual Studio compatible tab / shift-tab behaviour
Product: [Eclipse Project] Platform Reporter: Timo Suoranta <tksuoran>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, pwebster, remy.suen
Version: 4.2Keywords: needinfo
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Timo Suoranta CLA 2011-12-02 17:28:37 EST
Build Identifier: 20110916-0149

In Eclipse text editor:
E1. if there is no block selection, tab inserts white space at caret location
E2. if there is selection part of single line, tab replaces selection with white space
E3. if there is block selection, tab indents lines touching selection
E4. if there is no selection, shift-tab unindents the whole current line, regardless of current caret position
E5. if selection contains unintended lines (no white space in beginning), shift-tab does nothing
E6. if all lines have indentation (begin with whitespace), shift-tab unindents lines touching current selection (block or non-block), 

In Visual Studio text editor:
V1. if there is no selection, tab inserts white space at caret location
V2. if there is selection part of single line, tab replaces selection with white space
V3. if there is multi-line non-block selection, tab, indents lines touching selection
V4. if there is multi-line block selection, tab inserts white space at left edge of block selection
V5. if there is no selection, shift-tab removes white space left to caret
V6. if there is non-block selection, shift-tab unindents any line in the selection which can be unindented, even if some of then can not be unindented
V7. if there is block-selection, shift-tab removes white space left to the block selection (on all lines)

In Visual Studio tab and shift-tab behave symmetrically, and text RHS from caret and block text selections can be quickly moved left/right to achieve desired alignment. 

Some users may find above listed V features more useful than E features. I would like to request V features in Eclipse text editor as optional features.


Reproducible: Always

Steps to Reproduce:
N/A
Comment 1 Timo Suoranta CLA 2011-12-02 19:47:33 EST
I would like to see if I can implement this myself. However, I do not have any real Eclipse development experience. Could you point me to which code to get, from where, and how to build?
Comment 2 Dani Megert CLA 2011-12-06 08:50:07 EST
Could you summarize only the change/diff that you would like to see?
See also bug 288430.
Comment 3 Dani Megert CLA 2011-12-15 04:24:08 EST
(In reply to comment #2)
> Could you summarize only the change/diff that you would like to see?
> See also bug 288430.

Ping!
Comment 4 Dani Megert CLA 2012-01-03 04:56:37 EST
Please reopen after providing the requested information.