卸载Materialize包后Sublime Text 3出现故障求助
Hey there, I’ve run into this exact kind of frustrating problem before—misbehaving packages often leave behind corrupted config files that stick around even after reinstalling the app. Let’s walk through the steps to get Sublime back to normal:
1. Fully Wipe Sublime’s Configuration Files
Reinstalling the app usually doesn’t touch your user settings, packages, and cache—that’s why the problem keeps coming back. Here’s how to delete those leftover files:
- Close Sublime Text 3 completely first.
- Navigate to the hidden config folder based on your OS:
- Windows: Open File Explorer and paste
%APPDATA%\Sublime Text 3into the address bar - macOS: Open Finder, press
Cmd+Shift+G, then enter~/Library/Application Support/Sublime Text 3 - Linux: Open your file manager and go to
~/.config/sublime-text-3
- Windows: Open File Explorer and paste
- Delete the entire folder (don’t worry—Sublime will rebuild a fresh, default set of files when you restart the app)
- Launch Sublime Text again. It should open with a clean, working default setup.
2. Reinstall Package Control (If It’s Still Broken)
If Package Control won’t open after the clean reset, you can manually reinstall it:
- Open the Sublime Console by pressing `Ctrl+`` (or go to View > Show Console)
- Paste this code into the console and press Enter:
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) - Wait a few seconds for the installation to finish, then restart Sublime. Package Control should be working again.
3. Reset the UI to Default
If the interface is still messed up after the above steps:
- Go to Preferences > Color Scheme and select a default option like
Monokai - Go to Preferences > Theme and choose
DefaultorAdaptive(depending on your OS)
Looking at your screenshot, this should fix the broken UI and restore file viewing functionality. Let me know if any step gives you trouble!
内容的提问来源于stack exchange,提问作者Rabeeh Rz

