Code Preview in The Jucer


How can I generate code to see the code preview of a UI I designed in the Jucer ? After making a new component and laying out some buttons when I go to the code preview it says :
Couldn’t find the required Jucer template files…
Make sure the template files directory is set up correctly in the preferences box.

What am I missing ?

The template files are in juce/extras/the jucer/src/templates

I added that path in the preferences, but nothing gets generated in the code preview.
When I want to save whatever I did it doesn’t let me either because of the same error, even though i added the correct path to the preferences.

Any extra step I could do?

If it’s giving you that error, then you didn’t add the correct path.