Phpstorm 8



PHPStorm(8) on my Host. CentOS as my Guest (vagrant) Tested on Ubuntu and Mac Host; I started first by setting the global settings. This way, all new projects will inherit the default settings. Currently setup projects will need to apply the global settings for this to work. If you have not setup your default interpreter already, you should do this now. IDE FROZEN: PhpStorm does not respond anymore while indexing php project. WI-25596 (Bug) Complete current statement: alternative syntax: inserted closing statement is outside of php tag. WI-25597 (Bug) Quick documentation popup: Character ' in Phpdoc is not displayed. PhpStorm 2021.1.1 Build 211.7036.8 download page. Download PhpStorm-2018.1.4.exe free. PhpStorm Size: 397Mb. Downloaded: 3,714 times.

It's been a long time. I've been using PhpStorm for almost 8 years now. More precisely from 2012. Version 3 back then. A lot has happened in that time. A lot has changed. Of course, you learn more and more every day. This article is the result of my 8 years of experience with PhpStorm and my best settings that make you a faster developer and let you focus more on the important things.

If you don't care about the exact settings and what they are used for, you can download my snapshot (including my personal GitHub and Material Theme) and just import it into PhpStorm via File > Import Settings. Just scroll to the end of this post and you'll find anything you need.

My Best Settings

I'll show you only the settings you've to change that are different from the default. Either I'm gonna show you a [ ] for unselect or [x] for select.

General

Hide everything you don't need.

View > Appearance

  • [ ] Toolbar
  • [ ] Tool Window Bars
  • [ ] Status Bar
  • [ ] Navigation bar
Phpstorm 8

Settings

Appearance & Behaviour > Appearance

  • [ ] Animate windows
    Doesn't improve anything but decreases performance
  • [x] Show memory indicator
    If you are using the status bar to give you better insights into your memory usage
  • [ ] Show tool window bars
    Removes some more bars
  • [ ] Show tool window numbers
    Removes some more bars

Appearance & Behaviour > System Settings

  • [ ] Reopen last project on startup
    I work on several projects, so I want to choose which project should be opened at the beginning
  • [ ] Confirm application exit
    If I want to exit the application it just should close without any confirmation
  • [x] Open project in new window
    PhpStorm gives you the possibility to open a project in the same window as the current one. This is in 99% not the thing you want.

Appearance & Behaviour > File Colors

  • [ ] Enable File Colors
  • [ ] Use in Editor Tabs
  • [ ] Use in Project View

Maybe you like it or not. I don't. These options remove the file colors and background colors from the tabs and project tree for some special folders like node_modules or tests.

Keymap

I just changed some of the keymaps. Basically I'm using the default ones.

  • Ctrl + V Split Vertically
  • Ctrl + H Split Horizontally
  • Cmd + T Run...
    If you are in a test file you just press this keymap within a method and then this method will be tested.
  • Shift + Cmd + T Run
    This keymap can be used anywhere in the application. It just runs that last test again.
  • Ctrl + W Hide Active Tool Window
    When you run tests, the test window opens. If you're using the terminal in PhpStorm, this can be useful too. With this shortcut, you can close that at any time.
  • Cmd + 2 Select in Project View
    You might now know this. With Cmd + 1 you can toggle the sidebar. What I still often need is to jump into the sidebar project tree. I often use Shift + Shift that lets you search for everything or Cmd + O to search for classes. So I never use the sidebar. But if you would like to jump into that with the file that is currently open, this shortcut is awesome.

Editor > General

  • [ ] Enable Drag'n'Drop functionaliy in editor
    This option actually sucks. If you don't disable it, you can move code around with your mouse which quite often happens, even if you don't want it.
  • [ ] Show notification after reformat code action
  • [ ] Show notification after optimize imports action
  • [x] Soft-wrap-files
    This is a very cool functionality. When you edit for instance markdown files, lines never wrap. With this option, you can change that. They wrap now.
  • Strip trailing spaces on Save: All
    This one strips all trailing spaces on every single save command (PhpStorm saves automatically if you don't use tabs)
  • [ ] Always keep trailing spaces on caret line
  • [x] Ensure line feed at file end on save
    With this option, your file is guaranteed to have an empty line at the end of the file.

Editor > General > Appearance

  • [ ] Show hard wrap and visual guides
  • [ ] Show code lens on scrollbar hover
    This removes the 'preview' of the code when you hover at a specific position on the scrollbar

Editor > General > Breadcrumbs

  • [ ] Show Breadcrumbs
    We don't need breadcrumbs. So let's disable it. We love clean UIs.

Editor > General > Code Completion

  • [x] Show full method signatures
    We want to see everything when code completion for methods starts

Editor > General > Code Folding

Personally, I don't like any code folding, because I would like to see what I edit.

  • [ ] Show coding folding outline
  • [ ] File header
  • [ ] Imports
  • [ ] HTML 'style' attribute
  • [ ] XML entities
  • [ ] Data URIs
  • [ ] Imports

Phpstorm 2017

Editor > General > Editor Tabs

  • Appearance: None
Phpstorm 8.0.3

If you are not used to having any tabs I can highly recommend it. You can always the shortcut Cmd + E to get the recent files and Shift + Shift to search for any other file. There is no need for tabs.

Editor > General > Smart Keys > PHP

  • [ ] Enable smart function parameters completion
  • [ ] Select variable name without '$' sign on double click
    If I double click on a variable, I don't want it to select the '$', that's why I disable it.

Editor > General > Font

This is very personal and up your own preference. This fits best for me.

  • Font: Menlo
  • Size: 15
  • Line spacing: 1.9

Editor > General > Color Scheme > General

If you're like me and you don't want all these method separators, you can disable them. What you can't disable yet are the separators for the imported use statements. But there is a workaround. Just unset the foreground color for the following entry.

  • [ ] Method separator color, Foreground

Editor > General > Code Style

  • Line Seperator: Unix and macOS

Editor > General > Inspections

You might be wondering why I don't say anything here. Listing the inspections is pretty elaborate. I've made a few adjustments here specific to Laravel. So you have a clean environment without those annoying underlings. My Inspections can also be found in the download package. If you have any questions, let me know.

Editor > General > Inlay Hints

  • [ ] Show hints for:
    I don't need this.

Languages & Frameworks > PHP > Debug

  • [ ] Force break at first line when no path mapping specified
  • [ ] Force break at first line when a script is outside the project

You should untick both when using Laravel Valet. Otherwise, xdebug starts debugging in Valet itself.

Tools > Web Browsers

  • [ ] Show browsers popup in the editor
    Do you remember this little preview with browser icons all the time? You can disable it.

Conclusion

The result is a very clean and intuitive IDE that remembers of Sublime with the only difference that it's a fully integrated IDE. You can download my complete PhpStorm settings package. Just import into PhpStorm via File > Import Settings.

What's included?

This package contains also my customized GitHub Theme and customized Material Theme. My Material Theme is not that colorful as the original is. That makes it cleaner and you can focus more. As a bonus there is a Laravel specific inspections rule included. If you don't use it, most of the time everything is underscored with orange or red lines because of Laravels Facade architecture, it's hard for the IDE to follow everything along.

I am very interested in whether I have forgotten something? Or if you have any other practical tips to help me make PhpStorm even better. Let me know.

Package Details: phpstorm 2021.1.1b211.7036.8-1

Package Actions

  • View PKGBUILD / View Changes
Git Clone URL: https://aur.archlinux.org/phpstorm.git (read-only, click to copy)
Package Base: phpstorm
Description: Lightweight and Smart PHP IDE
Upstream URL: https://www.jetbrains.com/phpstorm/
Keywords:
Licenses: custom:jetbrains
Submitter: None
Maintainer: freswa
Last Packager: freswa
Votes: 208
Popularity: 2.68
First Submitted: 2011-01-22 19:28
Last Updated: 2021-04-16 14:19

Dependencies (6)

  • glib2(glib2-sched-policy, glib2-clear, glib2-quiet, glib2-selinux, glib2-nodocs-git, glib2-git, glib2-patched-thumbnailer)
  • python(python-dbg)
  • gnome-keyring(gnome-keyring-git, pass-secrets-git)(optional) – save login/deployment credentials safely
  • java-openjfx(jdk9, jre9, jre10, jdk8-arm64, jdk8-arm, jdk10, jdk7, jre7, jdk-bcl, jre-bcl, jre8, jdk8, java-openjfx-bin, java-openjfx-ea-bin, liberica-jdk-full-bin, java11-openjfx)(optional) – rendering Markdown files
  • java-runtime (jdk5, tuxjdk, jre7-openjdk-infinality, java-8-openjdk-shenandoah, jre8-openjdk-infinality, java-gcj-compat, jdk9, jre9, jdk-devel, jre10, jdk8-arm64, jdk6, jdk12-openj9-bin, zulu-12-bin, jre6, jre12, jdk8-openjdk-dcevm, jdk11-graalvm-ee-bin, server-jre, jdk8-arm, jdk13-openj9-bin, jdk9-openj9-bin, jdk10, jdk11-openjdk-dcevm, jre8-openjdk-jetbrains, jre8-openjdk-shenandoah, jdk10-openj9-bin, jdk14-openj9-bin, jdk7, jre7, jre14, jdk8-jetbrains, jdk7r1-j9-bin, jdk7-j9-bin, zulu-14-bin, zulu-13-bin, jdk-bcl, jre-bcl, amazon-corretto-15, jdk11-openj9-bin, jdk11-openjdk-dcevm-conflicts-fixed, jre8, jdk8, jdk11-adoptopenjdk, zulu-15-bin, liberica-jre-8-full-bin, jdk8-j9-bin, zulu-embedded-jdk11, jdk8-openj9-bin, zulu-embedded-jdk8, jre11, sapmachine-jdk-bin, jre8-adoptopenjdk, jre11-jetbrains-imfix, java-openjdk-bin, jdk-adoptopenjdk, zulu-16-bin, jdk15-adoptopenjdk, jre-openj9, zulu-embedded-jdk, jdk16-graalvm-bin, zulu-8-bin, zulu-11-bin, jre-jetbrains, jdk-jetbrains, jdk-arm, jdk8-graalvm-bin, jdk11-graalvm-bin, liberica-jdk-8-full-bin, liberica-jdk-11-bin, liberica-jdk-11-full-bin, liberica-jdk-11-lite-bin, liberica-jdk-full-bin, liberica-jre-11-bin, liberica-jre-11-full-bin, amazon-corretto-16, jdk-openj9-bin, jre, java-openjdk-loom-ea-bin, java-openjdk-ea-bin, amazon-corretto-8, amazon-corretto-11, jre-openjdk, jre11-openjdk, jre7-openjdk, jre8-openjdk)(optional) – JRE - Required if phpstorm-jre is not installed
  • phpstorm-jre(optional) – JetBrains custom Java Runtime (Recommended)

Sources (3)

bcremer commented on 2020-12-03 15:45

Here is the PKGBUILD patch for 2020.3: https://gist.github.com/bcremer/94a3b55b1f4e01a7d4d501d6c86c52ec

navarroaxel commented on 2020-07-30 11:25

The https://wiki.archlinux.org/index.php/Arch_package_guidelines#Package_versioning says that the package version 'should be the same as the version released by the author'. I think you should use 2020.2 without the build number.

freswa commented on 2020-05-18 21:48

This is a split package, also containing phpstorm-jre, which provides the JetBrains Runtime. That's why the dependency on JRE is optional.

RoestVrijStaal commented on 2020-05-18 13:05

According to the Installation Guide the Java dependencies aren't needed anymore for the phpstorm-package

You do not need to install Java to run PhpStorm, because JetBrains Runtime is bundled with the IDE (based on JRE 11).

Please correct me if I'm wrong.

Phpstorm 502 Bad Gateway

freswa commented on 2020-05-04 16:30

I'll return to hardcoded builds with the next release.

hgn commented on 2020-05-04 14:45

The pkgver procedure will fail if there is more than 1 directory under src As would be the case when updating. It will add PhpStorm at the end of the version from the cut -f2

DaFeliX commented on 2020-04-30 06:23

Users using i3wm having issues with no caret in the editor after switching from other applications:

  1. Press Help | Edit Custom VM Options... ('.vmoptions' file will open)
  2. Add -Dsuppress.focus.stealing.disable.auto.request.focus=false to a new line
  3. Restart IDE

Also see https://youtrack.jetbrains.com/issue/IDEA-194124#focus=streamItem-27-4102058.0-0

freswa commented on 2020-03-29 23:38

timschumi commented on 2020-03-29 14:54

Icon is currently broken for whatever reason, XFCE doesn't appear to add any suffix when searching using a full path.

Phpstorm 8.0.1

Since the icon is available in /usr/share/pixmaps/, please consider just using Icon=phpstorm instead of the full path.

jwundrak commented on 2020-03-22 00:56

Phpstorm Utf-8 Encoding

the icon update not works for me here in gnome3. If I do

-Icon=/opt/phpstorm/bin/phpstorm

Phpstorm 8.0.3

+Icon=phpstorm

Phpstorm 8 Download

it works, cause it is fetching from /usr/share/pixmaps

Could you please update this (and also for datagrip?)