Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362455 - [formatter] indentation of comments in object
Summary: [formatter] indentation of comments in object
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 04:29 EDT by Victor Homyakov CLA
Modified: 2013-06-19 11:10 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 Victor Homyakov CLA 2011-10-31 04:29:41 EDT
When formatting this example:

var style={
  // border: "0",
  height: height+"px",
  // padding: "0px",
  width: width+"px"
  // margin: "0px"
};

result should look like

var style = {
  // border: "0",
  height: height + "px",
  // padding: "0px",
  width: width + "px"
  // margin: "0px"
};

but is

var style = {
  // border: "0",
  height: height + "px",
  // padding: "0px",
  width: width + "px"
// margin: "0px"
};

The last comment before closing brace is misaligned (is on the level of the "var style = ..." declaration).

Eclipse:
Eclipse Java EE IDE for Web Developers.

Version: Indigo Service Release 1
Build id: 20110916-0149
Comment 1 Victor Homyakov CLA 2012-07-06 04:20:00 EDT
This bug is still present in Web Tools 3.4.0