Is it possible to auto-format your code in Dreamweaver?

后端 未结 12 1661
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 20:21

Is it possible to auto-format your code in Dreamweaver like in Visual Studio (ctrl+k+d)

相关标签:
12条回答
  • 2020-12-12 20:30

    A quick Google search turns up these two possibilities:

    • Commands > Apply Formatting
    • Commands > Clean up HTML
    0 讨论(0)
  • 2020-12-12 20:31

    Commands > Apply Source Formatting.

    Works a treat.

    0 讨论(0)
  • 2020-12-12 20:32

    This is the only thing I've found for JavaScript formatting in Dreamweaver. Not many options, but it seems to work well.

    JavaScript source format extension for dreamweaver: Adobe CFusion

    0 讨论(0)
  • 2020-12-12 20:34

    Please click on "edit" -> then keyboard shortcuts. It`s straight forward from there. Just select the command from the list, and press the + button.

    You will need to create a duplicate set, then select it again from the list. And finally set a keyboard shortcut!

    Now, before saving, press the shortcut you just created!

    0 讨论(0)
  • 2020-12-12 20:34

    I tried some of the sources online and finally, the below selection works fine for me (Dreamweaver on Mac). For versions above Adobe Dreamweaver CC 2017 and above:

    Adobe says:

    Edit > Code > Apply Source Formatting

    Moreover, full documentation with other supporting information for tasks such as setting defaults, etc. on https://helpx.adobe.com/dreamweaver/using/format-code.html.

    0 讨论(0)
  • 2020-12-12 20:39

    Auto formatting can be done by

    • Select View > Code View Options
    • Click the View Options button enter image description here in the toolbar at the top of Code view or the Code inspector.

    Auto Indent Makes your code indent automatically when you press Enter while writing code.

    source

    0 讨论(0)
提交回复
热议问题