Skip to main content
platypusman
Participating Frequently
August 13, 2024

Apply Source Formatting deletes code

  • August 13, 2024
  • 4 replies
  • 440 views

After typing a line of CSS and choosing Edit > Code > Apply Source Formatting, the entire line is deleted.

Undo also does not work in this case (does not undo the deletion, or bring back the line of code), so it is just gone.

 

(Screen capture attached.)

 

I use the auto formatting constantly, so this is a critical bug for me.

4 replies

Nancy OShea
Community Expert
Community Expert
August 13, 2024

OK.  Unusual behavior usually means your Preferences File is corrupted. Restore it and that should fix the problems.

https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver.html

 

 

Nancy O'Shea— Product User & Community Expert
platypusman
Participating Frequently
August 13, 2024

Thanks Nancy.

 

Unfortunately that workaround didn't help.

 

When trying that, it also did something odd that didn't happen previously, which was to leave a stray period in place of the class it removed. I don't know what's causing this.

 

(Screen recording: https://app.screencast.com/UXpQ3eDYUTYXP )

Nancy OShea
Community Expert
Community Expert
August 13, 2024

Try saving your document first to commit changes to hard disk --  File > Save (Ctrl/Cmd + S).

Then Apply Source Formatting.

 

 

 

Nancy O'Shea— Product User & Community Expert
platypusman
Participating Frequently
August 13, 2024

p.s.:

 

Dreamweaver version 21.4
15620 Build

 

macOS Sonoma 14.5 on M2 MacBook Air

 

(Couldn't figure out how to edit my post to add this)