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:26

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!

查看更多
欢心
3楼-- · 2019-01-21 10:27

Commands > Apply Source Formatting.

Works a treat.

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

that one would not work if you're editing javascript file inside dreamweaver even dreamweaver cs5 has no option to do it.

geeZZ...

查看更多
唯我独甜
5楼-- · 2019-01-21 10:32

ctrl+a->(click)commands->cleanup word HTML

查看更多
Animai°情兽
6楼-- · 2019-01-21 10:38

Following works perfectly for me: -*click on COMMAND and click on APPLY SOURCE FORMATTING - *And click on Clean Up HTML

Thank you PEKA

查看更多
别忘想泡老子
7楼-- · 2019-01-21 10:39

For the 2017 CC release this has been moved (after many years of habit development). Find it now at:

Edit > Code > Apply Source Formatting.

It may be prudent to set up a keyboard shortcut if this is something you'll need regularly.

Edit > Keyboard Shortcuts

查看更多
登录 后发表回答