Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321593 - PDT doesn't respect Project's Code Style - Formatter
Summary: PDT doesn't respect Project's Code Style - Formatter
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Zhongwei Zhao CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 09:48 EDT by Silver Zachara CLA
Modified: 2020-05-14 11:09 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 Silver Zachara CLA 2010-08-03 09:48:05 EDT
Hi,

this bug is annoying, there are few combinations how PDT decide which tab width to use.

For Single line when I press tab is used **Global Preferences - General - Editors - Text Editors - Displayed tab width**
For Single line when I press shift+tab is used **Global Preferences - PHP - Code Style - Formatter - Indentation size**

For Multiline line ( block of code ) when I press tab is used **Global Preferences - PHP - Code Style - Formatter - Indentation size**
For Multiline line ( block of code ) when I press shift+tab is used **Global Preferences - PHP - Code Style - Formatter - Indentation size**

Excepted behavior is ( for single line and multiline ):
When is enabled Project's specific code style, so should be used setting from **Project's Preferences - Code Style - Formatter - Indentation size**
And when isn't enabled Project's specific code style, so should be used setting from **Global Preferences - PHP - Code Style - Formatter - Indentation size**
Comment 1 Roy Ganor CLA 2010-08-04 08:55:48 EDT
can we align all options into one option?
Comment 2 Silver Zachara CLA 2010-08-04 10:22:33 EDT
My point of view is that yes. As I described in **Description**, last 3 lines.
Comment 3 Zhongwei Zhao CLA 2010-08-09 01:07:34 EDT
fixed in head and branch
Comment 4 Kalin CLA 2011-07-28 08:07:43 EDT
Verified.
Closing...