CSS Formatting
Older versions of Dreamweaver had an option to define how we wanted CSS to be formatted.
I don't see such an option, anymore.
Can we still customize that?
JJ
Older versions of Dreamweaver had an option to define how we wanted CSS to be formatted.
I don't see such an option, anymore.
Can we still customize that?
JJ
The thing is most of us minify CSS now, so formatting is kind of a moot point.
This does not answer the OP's question, which is not what is 'best' but whether custom CSS formatting is still available. This featured was deprecated from the Dreamweaver CC2017 UI after Brackets was incorporated. See thread;
css Apply Source Formatting DW 2017
Personally, I see this as a poor decision. I find it faster to work on CSS with each element on a single line, as opposed to my colleague who prefers each style on a separate line; we're different. It's not so much about the final file we'll be hosting but what we're working on.
In any case, customising CSS formatting is still possible but you must make modifications outside the app. As per the above thread (you may need to adjust the path based on your current version)...
C:\Users\<username>\AppData\Roaming\Adobe\Dreamweaver CC 2018\cloudpref\Adobe Dreamweaver CC 2018
Look for '<section name="Source Format">' and in this element you may customise various CSS formatting options. For instance, changing 'CSS Props On New Line' from TRUE to FALSE prevents every new style from appearing on a new line;
<pref name="CSS Props On New Line" type="string" val="TRUE"/>
However, you will also need to update the corresponding entry in the Registry (again, your registry path may differ slightly);
HKEY_USERS\S-1-5-21-116350639-1196654513-2025997110-70382\Software\Adobe\Dreamweaver CC 2018\Source Format
Good luck!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.