1. A computer-implemented method comprising: accessing code using a processor of a computer, the code: provided in a coding environment, the coding environment supporting an editing mode, and including: a first instance of an entity, the first instance of the entity having a first instance identifier, and a second instance of the entity, the second instance of the entity having a second instance identifier; monitoring, using the processor, the first instance of the entity and the second instance of the entity during the editing mode, the monitoring comprising: building an abstract syntax tree, representing the first instance of the entity as a first token in the abstract syntax tree, and representing the second instance of the entity as a second token in the abstract syntax tree; detecting a modified first instance identifier, the modified first instance identifier based on a change in the first instance identifier in the code; and automatically changing, using the processor, the second instance identifier to match the modified first instance identifier, the automatically changing comprising: traversing the abstract syntax tree to locate the second token representing the second instance of the entity, and changing the second instance identifier of the second instance of the entity based on locating the second token in the abstract syntax tree.