It does work, I use it all the time. You did save your changes, right? You’re not just sitting there with a code editor open and not saved?
The only time it’ll remove the content is if you remove the item that the code refers to - e.g. the if you take away the button, it’ll delete the button’s callback code.
hmmm - i even tried “save as” and used a new filename.
i create a new file with the jucer
save it as comp1.cpp
close the jucer
make a change as described above
save the changes
open the jucer again
open changed file comp1.cpp
click “save as” comp2.cpp
now i have 2 file.
freshly opened in an editor.
comp1.cpp contains the changes
my changes in comp 2 are gone.
maybe i’ll try a fresh rebuild
edit: just tried it again with another freshly build version - with the same results
i tried juce 1.47 and 1.5 both in debug version