Is it possible to auto-format your code in Dreamweaver like in Visual Studio (ctrl+k+d)
是否可以在Dreamweaver中自动格式化代码,比如Visual Studio (ctrl+k+d)
11 个解决方案
#1
98
A quick Google search turns up these two possibilities:
快速搜索谷歌会发现以下两种可能性:
- Commands > Apply Formatting
- 命令>申请格式
- Commands > Clean up HTML
- 命令>清理HTML
#2
50
Commands > Apply Source Formatting.
命令>应用源格式。
Works a treat.
一个对待工作。
#3
10
For the 2017 CC release this has been moved (after many years of habit development). Find it now at:
在2017年的CC版本中,这个已经被移动了(经过多年的习惯发展)。现在找到它:
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
6
Following works perfectly for me: -*click on COMMAND and click on APPLY SOURCE FORMATTING - *And click on Clean Up HTML
以下操作对我来说非常有用:-*单击命令,单击APPLY SOURCE FORMATTING -*,然后单击Clean Up HTML
Thank you PEKA
谢谢PEKA
#5
2
This is the only thing I've found for JavaScript formatting in Dreamweaver. Not many options, but it seems to work well.
这是我在Dreamweaver中找到的唯一用于JavaScript格式的东西。虽然选择不多,但似乎效果不错。
JavaScript source format extension for dreamweaver: Adobe CFusion
dreamweaver的JavaScript源格式扩展:adobecfusion
#6
1
that one would not work if you're editing javascript file inside dreamweaver even dreamweaver cs5 has no option to do it.
如果你在dreamweaver中编辑javascript文件,即使是dreamweaver cs5也没有这个选项。
geeZZ...
geeZZ……
#7
1
And for JavaScript source format you can use Dreamweaver JavaScript source formatting extension.(available on adobe)
对于JavaScript源格式,可以使用Dreamweaver JavaScript源格式扩展。(可在adobe)
#8
1
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.
自动缩进使您的代码在编写代码时按Enter时自动缩进。
源
#9
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!
现在,在保存之前,按一下刚才创建的快捷方式!
#10
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/
http://www.hongkiat.com/blog/10-useful-dreamweaver-tips-for-beginners/
#11
-1
ctrl+a->(click)commands->cleanup word HTML
ctrl + a - >(点击)命令- >清理HTML
#1
98
A quick Google search turns up these two possibilities:
快速搜索谷歌会发现以下两种可能性:
- Commands > Apply Formatting
- 命令>申请格式
- Commands > Clean up HTML
- 命令>清理HTML
#2
50
Commands > Apply Source Formatting.
命令>应用源格式。
Works a treat.
一个对待工作。
#3
10
For the 2017 CC release this has been moved (after many years of habit development). Find it now at:
在2017年的CC版本中,这个已经被移动了(经过多年的习惯发展)。现在找到它:
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
6
Following works perfectly for me: -*click on COMMAND and click on APPLY SOURCE FORMATTING - *And click on Clean Up HTML
以下操作对我来说非常有用:-*单击命令,单击APPLY SOURCE FORMATTING -*,然后单击Clean Up HTML
Thank you PEKA
谢谢PEKA
#5
2
This is the only thing I've found for JavaScript formatting in Dreamweaver. Not many options, but it seems to work well.
这是我在Dreamweaver中找到的唯一用于JavaScript格式的东西。虽然选择不多,但似乎效果不错。
JavaScript source format extension for dreamweaver: Adobe CFusion
dreamweaver的JavaScript源格式扩展:adobecfusion
#6
1
that one would not work if you're editing javascript file inside dreamweaver even dreamweaver cs5 has no option to do it.
如果你在dreamweaver中编辑javascript文件,即使是dreamweaver cs5也没有这个选项。
geeZZ...
geeZZ……
#7
1
And for JavaScript source format you can use Dreamweaver JavaScript source formatting extension.(available on adobe)
对于JavaScript源格式,可以使用Dreamweaver JavaScript源格式扩展。(可在adobe)
#8
1
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.
自动缩进使您的代码在编写代码时按Enter时自动缩进。
源
#9
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!
现在,在保存之前,按一下刚才创建的快捷方式!
#10
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/
http://www.hongkiat.com/blog/10-useful-dreamweaver-tips-for-beginners/
#11
-1
ctrl+a->(click)commands->cleanup word HTML
ctrl + a - >(点击)命令- >清理HTML