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

Bug 337829

Summary: [typing] Spaces Only mode: wrap string automatically inserts tabs instead of spaces
Product: [Eclipse Project] JDT Reporter: Niko Paltzer <nikop>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, dmitry.gusev, lcf
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Niko Paltzer CLA 2011-02-22 09:06:56 EST
Build Identifier: 20110204-0611

The wrap automatically feature ignores the setttings of the formatter and there is no possibility to configure this feature to insert spaces instead of tabs.

Reproducible: Always

Steps to Reproduce:
In Window -> Preferences -> Java -> Editor -> Typing:
The box "in String literals/wrap automatically" is checked.

In Window -> Preferences -> Java -> Code Style -> Formatter -> Edit ... -> Indentation -> General Settings/Tab policy:
"Spaces only" is selected and saved.

File -> New -> Class:
Name = "TestClass"

Fill the Class:
public class TestClass {
  String test = "";
}

Place the cursor between "".
Press Enter.

Two tabs are insertet before the "" in the new line.
Comment 1 Eclipse Genie CLA 2020-03-11 13:59:22 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.
Comment 2 Niko Paltzer CLA 2020-03-12 04:28:11 EDT
I just tested this with build 20191212-1212 and can confirm that the bug has been fixed.