Reset a project in Visual Studio Code

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Reset the project to the state on the server by discarding all the local changes if you encounter any serious sync issues.

    Avant de commencer

    Role required: none.

    Pourquoi et quand exécuter cette tâche

    When you reset a project to its server state, all unsynchronized changes are lost.

    Procédure

    1. Navigate to All > View > Command Palette in.
      You can also use a keyboard shortcut, Control+Shift+P on Windows or Command+Shift+P on MacOS, to open the command palette.
    2. Choose Now: Reset Project from the drop-down list.
    3. Click Yes in the dialog box.

    Résultats

    The project is reset to its original state.
    Remarque :
    This option should be used only when something goes wrong, for example, if the project is corrupted or you are facing sync issues.