When you replace shots on the timeline, you decide whether the edit sequence changes duration if the shot being replaced is of a different duration than the shot replacing it.
You replace shots using hotkeys.