History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-11973
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Pegov
Reporter: Richard Bondi
Votes: 1
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Css code format settings: indentation

Created: 18 Jun 06 04:08   Updated: 29 Nov 07 13:07
Component/s: Code Formatting and Code Style
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Relates
 
This issue is related to:
IDEADEV-11459 CSS formatter code style options Major Resolved

Build: 4,267


 Description  « Hide
For a file ending in .css, and inside <style type="text/css"> tags, css code format options should exist for indentation of css class, style, and id definitions:
  • Whether to indent braces
  • Whether to indent stuff inside braces
    Whether open brace should be on a new line
    • Whether brace on a new line should be indented or not
  • Whether close brace should be on a new line
    • Whether close brace on a new line should be indented or not
  • Whether each name/value pair should be on a new line, or all of them one one line
    • Whether name/value pair(s) should be indented

For every indentation option, by how many spaces to indent



 All   Comments   Work Log   Change History      Sort Order:
Richard Bondi - 18 Jun 06 04:14
More options for indenting name/value pairs:

Whether to put name/value pair on one line if there is only one (or two, or three, or some minimum # of styles) style:

/* Option: if only 1 name/value pair put on one line... */
UL { font-family: Verdana, sans-serif; }

/* ...but if more than one, put on separate lines */
UL {
  font-family: Verdana, sans-serif; 
  background-color:blue;
}