Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337829 - [typing] Spaces Only mode: wrap string automatically inserts tabs instead of spaces
Summary: [typing] Spaces Only mode: wrap string automatically inserts tabs instead of ...
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-22 09:06 EST by Niko Paltzer CLA
Modified: 2020-03-12 04:28 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.