• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Apply Source Formatting deletes code

Explorer ,
Aug 13, 2024 Aug 13, 2024

Copy link to clipboard

Copied

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.

Bug Unresolved
TOPICS
Code , Product issue

Views

112

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
community guidelines
4 Comments
Explorer ,
Aug 13, 2024 Aug 13, 2024

Copy link to clipboard

Copied

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)

Votes

Translate

Translate

Report

Report
Community Expert ,
Aug 13, 2024 Aug 13, 2024

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 13, 2024 Aug 13, 2024

Copy link to clipboard

Copied

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 )

Votes

Translate

Translate

Report

Report
Community Expert ,
Aug 13, 2024 Aug 13, 2024

Copy link to clipboard

Copied

LATEST

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 & Moderator

Votes

Translate

Translate

Report

Report