What's the process for completely uninstalling and reinstalling VS Code to ensure all problematic files are removed?

Responsive Ad Header

Question

Grade: Education Subject: Support
What's the process for completely uninstalling and reinstalling VS Code to ensure all problematic files are removed?
Asked by:
116 Viewed 116 Answers

Answer (116)

Best Answer
(562)
For a clean slate, first, uninstall VS Code through your operating system's application manager (e.g., 'Add or remove programs' on Windows, move to Trash on macOS). Then, manually delete any remaining installation folders (e.g., `C:\Program Files\Microsoft VS Code` on Windows) and, crucially, delete the user data directory as mentioned before (e.g., `%APPDATA%\Code`). After ensuring all these folders are removed, download the latest stable installer from code.visualstudio.com and perform a fresh installation. This ensures no old, corrupted files interfere.