MSFTNEXT

How to Reset Windows Terminal to Defaults

In this guide we will discuss how to reset Windows Terminal to defaults on Windows. It is combining the classic command line, PowerShell and Azure Cloud Shell. It is available on GitHub.

Windows Terminal has flexible settings that can be changed by editing the configuration file. Without experience working with configuration files, it is easy to make changes to them that can lead to undesirable results, for example, a damaged appearance or, even worse, an application malfunctioning.

In such cases, resetting the terminal will help you restore the original settings. There is no corresponding option in the app’s interface, but it is not particularly needed. It stores its settings in a special JSON file, and automatically creates a backup copy of that file each time you change the app options.

It is very easy to restore the default settings of the terminal, for this it is enough to clear the contents of this configuration file itself. Physically, this file is located in the folder:

"%LocalAppData%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json"

It’s called settings.json, but you can open it through the terminal itself.

Reset Windows Terminal to Defaults

  1. Launch Windows Terminal.
  2. Click on the icon with the downward arrow in the tab row and select “Settings” from the menu.
  3. On the Settings tab, click on the Open JSON file button.
  4. Select Notepad or any other text editor that you have installed on your computer.
  5. Before doing the following steps, copy the contents of the file into a separate document or copy the config file itself. Just in case.
  6. Close the Terminal app, clear the settings.json file contents, save it and start the Windows Terminal program.

This will reset the Windows Terminal settings.

There is also an alternative method. Using it, you don’t need to launch Windows Terminal. Instead you can directly remove the settings.json file.

Reset Windows Terminal Settings by removing settings.json

  1. Close Windows Terminal.
  2. Open a new command prompt.
  3. Execute the following command:
    del /f /s /q /a "%LocalAppData%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json".
  4. You have removed the settings.json file. Start the Terminal app, so it will have defaults for all options.

The similar can be done in PowerShell.

Restore defaults for Windows Terminal with PowerShell

  1. Close the Windows Terminal app.
  2. Open a new PowerShell.
  3. To remove the settings.json file, run this command: Remove-Item -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -Force.
  4. Close the PowerShell window and open Windows Terminal.

Finally, you can simply delete the settings.json file right from File Explorer. That will also work.

Looks like you've read the post to the end. If you enjoyed it, please share it. You would greatly help our blog to grow!
Exit mobile version