({{, (RefLink[AutoGeneratedPackage, paclet:ref/AutoGeneratedPackage])
is an option for notebooks that specifies whether a package is automatically created when a notebook that contains initialization cells or groups is saved.}})

OpenersNotesSection(Spacer1)Details

With the default setting (RefLink[AutoGeneratedPackage, paclet:ref/AutoGeneratedPackage])->(RefLink[Manual, paclet:ref/Manual]), a dialog box appears when a notebook containing initialization cells or groups is saved, asking whether a package should be created. Depending on your response, the value of the option is reset to (RefLink[None, paclet:ref/None]) or (RefLink[Automatic, paclet:ref/Automatic]).

With the setting (RefLink[AutoGeneratedPackage, paclet:ref/AutoGeneratedPackage])->(RefLink[Automatic, paclet:ref/Automatic]), a package is automatically created when a notebook containing initialization cells or groups is saved for the first time. The package is automatically updated each time the notebook is saved. The package file has the same name as the notebook except with the suffix ".m" instead of ".nb", and it is stored in the same directory as the notebook.

With the setting (RefLink[AutoGeneratedPackage, paclet:ref/AutoGeneratedPackage])->(RefLink[None, paclet:ref/None]), no package is created when a notebook containing initialization cells or groups is saved.

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(MenuGrayLink[Initialization Cell, paclet:ref/menuitem/InitializationCell])  ▪  (RefLink[InitializationCell, paclet:ref/InitializationCell])  ▪  (RefLink[InitializationGroup, paclet:ref/InitializationGroup])}})}})