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

守給你的承諾、 提交于 2019-11-27 09:48:46

问题


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


回答1:


A quick Google search turns up these two possibilities:

  • Commands > Apply Formatting
  • Commands > Clean up HTML



回答2:


Commands > Apply Source Formatting.

Works a treat.




回答3:


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




回答4:


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

Thank you PEKA




回答5:


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




回答6:


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




回答7:


Auto formatting can be done by

  • Select View > Code View Options
  • Click the View Options button

    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




回答8:


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!




回答9:


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/




回答10:


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



来源:https://stackoverflow.com/questions/2146862/is-it-possible-to-auto-format-your-code-in-dreamweaver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!