Ubuntu新手如何升级PhpStorm从2017.3.4到2018.1并保留配置
Hey there! As someone who’s tinkered with PhpStorm on Ubuntu for ages, I’ve walked through this exact upgrade a few times—so let me break down the safest, most straightforward ways to get to 2018.1 without losing any of your custom settings, shortcuts, or project tweaks.
Method 1: Use JetBrains Toolbox (The No-Hassle Way)
If you haven’t tried JetBrains Toolbox yet, it’s the easiest way to manage all your JetBrains IDEs (including PhpStorm) and handle upgrades seamlessly:
- First, install Toolbox: Grab the
.debpackage from JetBrains’ site, then either double-click it to install via Ubuntu Software Center, or run this command in the terminal (replacejetbrains-toolbox-*.debwith the actual filename):sudo dpkg -i jetbrains-toolbox-*.deb - Open Toolbox—it’ll automatically detect your existing PhpStorm 2017.3.4 installation.
- Find the PhpStorm entry, click the "Update" button next to it. Toolbox will download 2018.1, install it, and automatically migrate all your configurations (shortcuts, plugins, code styles, everything) to the new version.
- Once done, you can choose to keep the old 2017.3.4 version or uninstall it—your new setup won’t be affected either way.
Method 2: Manual Installation (For Control Freaks)
If you prefer handling things yourself, follow these steps to ensure your settings carry over:
- First, back up your current config (just to be safe): PhpStorm stores its config in
~/.PhpStorm2017.3for the 2017.3.x series. Copy this folder to a safe spot with:cp -r ~/.PhpStorm2017.3 ~/PhpStorm2017.3_backup - Download the PhpStorm 2018.1
.tar.gzpackage from JetBrains’ site. - Extract it to your preferred installation directory (most people use
/opt/for system-wide access):sudo tar -xzf PhpStorm-2018.1.tar.gz -C /opt/ - Launch the new PhpStorm: Navigate to the extracted folder (e.g.,
/opt/PhpStorm-2018.1/bin/) and run:./phpstorm.sh - On first launch, you’ll see an "Import Settings" window. Select "From previous version" and either pick the path to your old
~/.PhpStorm2017.3folder, or just use the default option—it’ll auto-detect the old config. Click OK, and your settings will be migrated. - Don’t forget to update your desktop shortcut: Delete the old one, then go to
Tools > Create Desktop Entryin the new PhpStorm to make a fresh shortcut.
Quick Tips to Avoid Headaches
- Plugin Check: Some older plugins might not work with 2018.1. When you launch the new version, PhpStorm will flag incompatible plugins—you can either update them (if an update exists) or disable them temporarily.
- Verify Settings: After upgrading, take 2 minutes to check your favorite shortcuts, code style rules, and project associations to make sure everything’s intact. If something’s off, you can restore from the backup folder we created earlier.
内容的提问来源于stack exchange,提问作者Václav Stummer
相关产品推荐
相关产品推荐

