Is it possible to auto-format your code in Dreamwe

2019-01-21 09:55发布

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

11条回答
男人必须洒脱
2楼-- · 2019-01-21 10:42

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

查看更多
家丑人穷心不美
3楼-- · 2019-01-21 10:47

A quick Google search turns up these two possibilities:

  • Commands > Apply Formatting
  • Commands > Clean up HTML
查看更多
淡お忘
4楼-- · 2019-01-21 10:48

And for JavaScript source format you can use Dreamweaver JavaScript source formatting extension.(available on adobe)

查看更多
The star\"
5楼-- · 2019-01-21 10:48

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

查看更多
Lonely孤独者°
6楼-- · 2019-01-21 10:52

Coding toolbar (Edit > Toolbars > Coding) and select Code Format Settings to set your preferred formatting.

You can also access the formatting option from Commands > Apply Source Formatting or only apply it to a select block of code by selecting the Apply Source Formatting to Selection option.

http://www.hongkiat.com/blog/10-useful-dreamweaver-tips-for-beginners/

查看更多
登录 后发表回答