Reputation:
Is it possible to auto-format your code in Dreamweaver like in Visual Studio (ctrl+k+d)
Upvotes: 90
Views: 197444
Reputation: 558
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.
Upvotes: 2
Reputation: 61063
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
Upvotes: 29
Reputation: 614
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/
Upvotes: 0
Reputation: 914
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!
Upvotes: 0
Reputation: 521
Following works perfectly for me: -*click on COMMAND and click on APPLY SOURCE FORMATTING - *And click on Clean Up HTML
Thank you PEKA
Upvotes: 6
Reputation: 57322
Auto formatting can be done by
Auto Indent Makes your code indent automatically when you press Enter while writing code.
Upvotes: 1
Reputation: 127
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
Upvotes: 2
Reputation: 11
And for JavaScript source format you can use Dreamweaver JavaScript source formatting extension.(available on adobe)
Upvotes: 1
Reputation: 449435
A quick Google search turns up these two possibilities:
Upvotes: 99