This paper studies the voltage, phase and current tracking strategy to eliminate voltage and current mutations when the virtual synchronous generator is switching between grid-connected and islanded.