DocumentationMathematicaFront EndMenu CommandsFile MenuSave As Special...
Package Format
Package Format saves the text of the file in the form of a Mathematica package, commenting out all cells except initialization cells.
See: InitializationCell.