Skip to main content
Participant
Nov 22, 2016 6:56 PM UTC
Answered

DW CC 2017 Format Source Code NOT to auto remove blank lines?

Format source code automatically removes blanks lines. Get that it makes code smaller...

I'd like to learn how to keep the blank for code in development and readability sake.

Under code formatting preferences can keeping blank line numbers be set?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Nancy OShea
    Nancy OSheaCorrect answer
    Community Expert
    Nov 22, 2016 7:20 PM UTC

    Line Breaks are defined under Preferences > Code Format > Tag Libraries.  You can also access this from your Common Toolbar.  See screenshots.

    Once your formatting options are all defined as desired, click Apply Source Formatting.

    Nancy O.

    Nancy O'Shea— Product User & Community Expert

    11 replies

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    Nov 22, 2016 7:20 PM UTC

    Line Breaks are defined under Preferences > Code Format > Tag Libraries.  You can also access this from your Common Toolbar.  See screenshots.

    Once your formatting options are all defined as desired, click Apply Source Formatting.

    Nancy O.

    Translate
    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    Nov 22, 2016 7:29 PM UTC

    Oh hey, sweet, they didn't remove it entirely, they just moved it to move it.

    If I understand the OP, they actually want to add a blank line between each line of code (basically a double-spaced code view is what I gathered from the original post), that is still not available, right?

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Nov 22, 2016 7:47 PM UTC

    Never tried it.   I don't like empty space in my code except between sections & divisions tags.

    Translate
    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    Nov 22, 2016 7:04 PM UTC

    Unfortunately, DWCC2017 is completely missing the Tag Libraries option under Preferences.

    As far as I can tell, there isn't a way to modify the source formatting rules currently (without possibly modifying one of the program's XML files).

    EDIT: There also was not a way to modify blank lines the way you want in previous versions either.

    Translate