Reset a project in Visual Studio Code

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • Reset the project to the state on the server by discarding all the local changes if you encounter any serious sync issues.

    Vorbereitungen

    Role required: none.

    Warum und wann dieser Vorgang ausgeführt wird

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

    Prozedur

    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.

    Ergebnisse

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