Quickly reset VSCode to factory settings

Introduction

A handy guide on how to swiftly reset Visual Studio Code (VS Code) to its factory settings. Whether you’re experiencing performance issues, conflicts with extensions, or simply want a fresh start, resetting VS Code can often be the solution.

We’ll focus on resetting VS Code on macOS, where we’ll walk you through a series of commands to remove the necessary files and directories associated with VS Code. This includes removing the “.vscode” directory, clearing the application support, caches, and saved application state folders.

By following the steps outlined in this guide, you’ll be able to reset your VS Code installation and start with a clean slate. This can help resolve various issues and ensure a smooth and optimized coding experience.

So, if you’re ready to give your VS Code a fresh start and restore it to its default configuration, let’s dive in and discover how to quickly reset VS Code to factory settings!

Here we go

For macOS

$ rm -rf "$HOME/.vscode"
$ rm -rf "$HOME/Library/Application Support/Code"
$ rm -rf "$HOME/Library/Caches/com.microsoft.VSCode"
$ rm -rf "$HOME/Library/Saved Application State/com.microsoft.VSCode.savedState"

found at: https://www.shellhacks.com/reset-visual-studio-code/