({{, (RefLink[CellEditDuplicate, paclet:ref/CellEditDuplicate])
is an option for (RefLink[Cell, paclet:ref/Cell]) which specifies whether the front end should make a copy of the cell before actually applying any changes in its contents that you request. }})

OpenersNotesSection(Spacer1)Details

(RefLink[CellEditDuplicate, paclet:ref/CellEditDuplicate]) is by default set to (RefLink[False, paclet:ref/False]) for cells that are generated as Wolfram System output.

New cells generated when (RefLink[CellEditDuplicate, paclet:ref/CellEditDuplicate])->(RefLink[True, paclet:ref/True]) have styles specified by the setting for (RefLink[DefaultDuplicateCellStyle, paclet:ref/DefaultDuplicateCellStyle]) for the notebook.

(RefLink[CellEditDuplicate, paclet:ref/CellEditDuplicate]) is typically set for styles of cells rather than for individual cells.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Create an output cell that will automatically be copied when you edit it:

CreateDocument[ExpressionCell[2+a,"Output",CellEditDuplicate->True,CellEditDuplicateMakesCopy->True]];

Position the insertion point at the end of the cell's contents:

When you type something in the cell, the Wolfram System makes a new copy:

Create an output cell that will automatically be restyled as input when you edit it:

CreateDocument[ExpressionCell[2+a,"Output",CellEditDuplicate->True,CellEditDuplicateMakesCopy->False]];

Position the insertion point at the end of the cell's contents:

When you type, the Wolfram System converts the cell to an input cell:

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CellEvaluationDuplicate, paclet:ref/CellEvaluationDuplicate])  ▪  (RefLink[Editable, paclet:ref/Editable])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Options for Cells, paclet:tutorial/OptionsForCells])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Stylesheets, paclet:guide/Stylesheets])}, {▪(RefLinkPlain[Evaluation Options in Notebooks, paclet:guide/EvaluationOptionsInNotebooks])}})}})