You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PHPStorm重置后需重复配置FTP及丢失历史文件问题排查

Hey there, let's break down why your PHPStorm settings keep resetting after each restart—losing FTP configurations, forgetting recent files, and forcing you to re-enable that auto-upload option every time. Here are the most likely culprits and actionable fixes to try:

1. Permission Issues with Settings Storage Directory

PHPStorm saves all your preferences in a dedicated folder, which varies by OS:

  • Windows: C:\Users\<YourUsername>\AppData\Roaming\JetBrains\PhpStorm<VersionNumber>
  • macOS: ~/Library/Application Support/JetBrains/PhpStorm<VersionNumber>
  • Linux: ~/.config/JetBrains/PhpStorm<VersionNumber>

If your user account doesn’t have write permissions to this folder, PHPStorm can’t save any changes you make between sessions.

  • Fix: Navigate to the folder, right-click it, and check permissions. Ensure your user has read/write access—if not, adjust permissions or take ownership of the directory.
2. Corrupted Configuration Files

Over time, core config files (like config.xml or FTP-specific setting files) can get corrupted, preventing PHPStorm from loading or saving settings correctly.

  • Fix:
    • Close PHPStorm entirely.
    • Go to the settings directory mentioned above, and rename the config folder to config_old.
    • Restart PHPStorm—it’ll generate a fresh config folder. Reapply your FTP and auto-upload settings, then restart again to see if they stick.
3. Accidentally Enabled "Reset Settings on Exit"

It’s easy to toggle a hidden experimental option that resets settings when you close the IDE—sometimes triggered by plugins or misconfigured launch shortcuts.

  • Fix:
    • Open PHPStorm, press Ctrl+Shift+A (Windows/Linux) or Cmd+Shift+A (macOS) to open the "Find Action" menu.
    • Search for "Reset Settings on Exit"—if it’s checked, uncheck it immediately.
    • Also, check your PHPStorm shortcut/launch command for a --reset flag. If present, remove it.
4. Third-Party Plugin Conflict

Plugins related to FTP, file sync, or IDE configuration can interfere with how PHPStorm saves settings.

  • Fix:
    • Restart PHPStorm in Safe Mode (hold the Shift key while launching the IDE).
    • Set up your FTP and auto-upload settings again, then restart normally. If settings persist this time, a plugin is the issue.
    • Disable plugins one by one, testing after each disable, to find the culprit. Update or remove the problematic plugin.
5. System Cleaners Deleting Config Files

Tools like CCleaner (Windows), CleanMyMac (macOS), or system disk cleaners might be targeting PHPStorm’s config files during routine cleanups.

  • Fix: Add PHPStorm’s settings directory to your cleaning tool’s exclusion list. Make sure these tools don’t touch JetBrains’ application support folders.

内容的提问来源于stack exchange,提问作者Prox

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 08:25:06