Fix Sublime Text Not Responding or Opening
In this article
If Sublime Text is stuck on a blank window, won't open, or shows "Not Responding," the quickest fix is to close it completely (including background processes) and reopen it. If that doesn't work, reset your preferences or reinstall the editor. Below are the exact steps to get Sublime Text running again.
What You'll Need
- Access to your computer's task manager (Windows) or Activity Monitor (macOS)
- Administrator rights on your machine (for reinstalling or editing system files)
- Your Sublime Text license key (if you have one) – you'll need it to re-activate after reinstalling
- A backup of your settings (optional but recommended)
Step-by-Step
- Force-close Sublime Text completely.
- Windows: Press Ctrl+Shift+Esc to open Task Manager. Find Sublime Text in the list, right-click it, and choose "End Task." Also look for any "sublime_text" processes in the Details tab and end them too.
- macOS: Press Cmd+Option+Esc to open Force Quit. Select Sublime Text and click "Force Quit." Then open Activity Monitor, search for "sublime" and force quit any remaining processes.
- Restart Sublime Text. Open it normally. If it opens fine, you're done. If not, continue.
- Check for a stuck crash recovery file. Sublime Text sometimes fails to load a session file that has become corrupted. Rename the session files to disable auto-restore:
- Windows: Press Win+R, type
%APPDATA%\Sublime Text\and press Enter. In that folder, renameSession.sublime_sessiontoSession.sublime_session.oldandAuto Save Session.sublime_sessiontoAuto Save Session.sublime_session.old. - macOS: Open Finder, press Cmd+Shift+G, type
~/Library/Application Support/Sublime Text/and press Enter. Do the same renames as above. - Linux: Look in
~/.config/sublime-text/(or~/.config/sublime-text-3/for older versions) and rename the same files.
- Windows: Press Win+R, type
- Reset Sublime Text to default settings. This clears any broken preferences or packages. Move your entire configuration folder to a backup location, then restart Sublime Text. It will create fresh defaults.
- Windows: Rename
%APPDATA%\Sublime Text\to%APPDATA%\Sublime Text Backup\. - macOS: Rename
~/Library/Application Support/Sublime Text/to~/Library/Application Support/Sublime Text Backup/. - Linux: Rename
~/.config/sublime-text/(or~/.config/sublime-text-3/) to a backup name.
This will lose your custom settings, installed packages, and license activation (you'll need to re-enter your key). If you have a backup of your
Packages/User/folder, you can restore it later. - Windows: Rename
- Update or reinstall Sublime Text. If the reset didn't help, download the latest version from the official Sublime Text website and install it over your existing installation. On Windows, uninstall first via Control Panel > Programs and Features. On macOS, drag Sublime Text from Applications to Trash, then reinstall. On Linux, use your package manager to remove and reinstall.
- Check for conflicts with third-party software. Some antivirus or system utilities can interfere with Sublime Text. Temporarily disable your antivirus (if you're comfortable doing so) and try opening Sublime Text. If it works, add Sublime Text to your antivirus's whitelist.
Common Mistakes
- Not closing background processes. Simply closing the window may leave Sublime Text running in the background. Always force-quit all processes before restarting.
- Deleting configuration files without backup. You might lose years of custom key bindings and settings. Always rename (not delete) the folder.
- Installing a beta version. Beta builds can be unstable. Stick to the stable release from the official site.
- Ignoring system updates. An outdated OS can cause compatibility issues. Update your operating system before troubleshooting deeper.
Tips
- Use the command palette to reload. If Sublime Text opens but is unresponsive, press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) and type "revert" to reload the current file. This can help if only one file is stuck.
- Keep a backup of your settings. Regularly copy your
Packages/User/folder (contains preferences, key bindings, and snippets) to a cloud drive or external storage. - Run Sublime Text as administrator (Windows). If you have permission issues, right-click the shortcut and select "Run as administrator." This is not a permanent fix but can help diagnose.
- Check for large files. Opening a file that is hundreds of megabytes can freeze Sublime Text. Try opening smaller files first to see if the issue is file-specific.
Troubleshooting
If the problem persists after the steps above, try these in order:
- Restart your computer. A full reboot clears memory issues and resets system resources.
- Check the Sublime Text forum. The official community forum (forum.sublimetext.com) has threads about common crashes. Search for your error message or symptoms.
- Run Sublime Text in safe mode (Windows). Press Win+R, type
sublime_text --safe-modeand press Enter. This disables all third-party packages. If it opens, a package is the culprit. You can then disable packages one by one via Preferences > Package Control > Disable Package. - Check the console log. When Sublime Text crashes, it may write a log. On Windows, look in
%APPDATA%\Sublime Text\for a file namedSublime Text.log. On macOS, check~/Library/Logs/Sublime Text/. The log may show the exact error. - Reinstall with a clean slate. Uninstall Sublime Text, then delete the configuration folder (after backing it up), then reinstall. This ensures no leftover files interfere.
Frequently Asked Questions
Why does Sublime Text open a blank window and then freeze?
This often happens because of a corrupted session file or a broken plugin. Renaming the session files as described in Step 3 usually resolves it.
Will resetting my settings delete my installed packages?
Yes, renaming the configuration folder removes all packages and settings. You can reinstall packages via Package Control after resetting. If you backed up the Packages/User/ folder, you can restore your custom settings.
Can I recover my unsaved work after a crash?
Sublime Text has unsaved buffer recovery. After restarting, it may prompt you to restore unsaved files. If it doesn't, look in the Session.sublime_session file for references to unsaved buffers, but this is tricky. Your best bet is to enable auto-save or use a plugin like "BufferSave" in the future.
Does Sublime Text work on Linux?
Yes, Sublime Text is available for Linux (Debian, Ubuntu, Red Hat, etc.). The configuration path may vary slightly, but the steps above apply.
Why does Sublime Text crash when I open a specific file?
The file might be corrupted, extremely large, or have an encoding that Sublime Text can't handle. Try opening it with a text editor like Notepad++ (Windows) or TextEdit (macOS) to see if it opens there. If it does, the issue is Sublime Text-specific.
Is there a way to prevent future crashes?
Keep Sublime Text updated, avoid installing too many packages, and regularly back up your settings. Also, avoid opening files that are several gigabytes in size.