This functionality is only available for certain module packages.

Code generator

Path to the preferences:

Menu Window > Preferences

Dialog Preferences > Disciplines > PLC > CoDeSys > Code generator