Highlighted

Auto Formatting (Keyboard shortcuts or format on save)

Community Beginner ,
Aug 21, 2020

Copy link to clipboard

Copied

Hi is there a way i can press a keyboard shortcut for autoformatting as the default setup requires two clicks and maybe its the way i have dreamweaver setup but the indentation of code is not very good in relation to html.

Views

35

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Auto Formatting (Keyboard shortcuts or format on save)

Community Beginner ,
Aug 21, 2020

Copy link to clipboard

Copied

Hi is there a way i can press a keyboard shortcut for autoformatting as the default setup requires two clicks and maybe its the way i have dreamweaver setup but the indentation of code is not very good in relation to html.

Views

36

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 21, 2020 0
Adobe Community Professional ,
Aug 21, 2020

Copy link to clipboard

Copied

You can set your own keyboard shortcut for it under...

1. Edit > Keyboard Shortcuts
2. If you're not working with custom shortcuts yet, click the Duplicate Set (two squares icon) in the dialogue that comes up
3. Select "Menu Commands" from the "Commands" dropdown menu
4. Open the "Edit" list by clicking the > icon
5. Scroll down to "Code" and open it by clicking its > icon
6. Click "Apply Source Formatting" to highlight it
7. Click the + icon next to "Shortcuts"
8. In the "Press Key" field, pres the keyboard shortcut you want to use
9. If there are no conflicts with currently set shortcuts, click the "Change" button
10. Click "OK"

From there on out, you can select your code and hit the keyboard shortcut you set to apply source formatting.

Setting how your code behaves is a little longer process, and can be done on a per tag basis under Edit > Preferences > Code Format (set the tab sizes here) > Tag Libraries (set tabs, line breaks and more here). Apply Source Formatting uses the rules you set here to modify your code.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 21, 2020 3
Amar5FCD LATEST
Community Beginner ,
Aug 21, 2020

Copy link to clipboard

Copied

Thanks ill try that

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 21, 2020 0