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

12

90

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

Ursola answered 27/1, 2010 at 12:44 Comment(0)
K
99

A quick Google search turns up these two possibilities:

  • Commands > Apply Formatting
  • Commands > Clean up HTML
Kunin answered 27/1, 2010 at 12:51 Comment(0)
E
51

Commands > Apply Source Formatting.

Works a treat.

Eskisehir answered 9/8, 2011 at 6:37 Comment(0)
F
29

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

Fecundate answered 21/11, 2016 at 2:47 Comment(0)
E
6

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

Thank you PEKA

Esbensen answered 11/8, 2013 at 3:9 Comment(0)
H
2

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

Holophytic answered 9/12, 2011 at 15:18 Comment(0)
D
2

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.

Deadradeadweight answered 16/12, 2019 at 5:3 Comment(0)
D
1

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

Dacoity answered 8/6, 2012 at 5:39 Comment(1)
Please also provide link to the resource you are forwarding atSupplicant
U
1

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

Underworld answered 18/2, 2013 at 11:25 Comment(0)
F
1

Please use shortcut key alt+c+a

Furmenty answered 3/9, 2020 at 6:28 Comment(0)
A
0

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!

Accompanyist answered 8/10, 2013 at 17:26 Comment(0)
M
0

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/

Miscarry answered 3/5, 2014 at 15:49 Comment(0)
P
-1

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

Paleopsychology answered 24/6, 2015 at 10:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.