Bug 406306 - Add an option "Enter key adjusts the indentation on the new line"
Summary: Add an option "Enter key adjusts the indentation on the new line"
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-23 05:36 EDT by Jean-Marc N/A CLA
Modified: 2020-05-14 10:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Marc N/A CLA 2013-04-23 05:36:12 EDT
I named it after the Java one in "Preferences > Java > Editor > Typing > Indentation". There's also "Tab key adjusts the indentation of the current line" but I think it's less useful.

Let's consider the following use case.

Legends :
* | = Cursor
* ---- = Tab character

Write down :
function smart_typing_is_evil ()
{|

Expected result (Option disabled) :
function smart_typing_is_evil ()
{
|

Expected result (Option enabled) :
function smart_typing_is_evil ()
{
----|

Note that the bug 406302 is related to this one. However as reported in bug 244445 the option "Smart Insert Mode" is misplaced for the moment.