Reset a project in Visual Studio Code

  • Versão de lançamento: Australia
  • Atualizado 12 de mar. de 2026
  • 1 min. de leitura
  • Reset the project to the state on the server by discarding all the local changes if you encounter any serious sync issues.

    Antes de Iniciar

    Role required: none.

    Por Que e Quando Desempenhar Esta Tarefa

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

    Procedimento

    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.

    Resultado

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