Early Access Program

PhpStorm 2019.3 EAP #3

The third build of the PhpStorm 2019.3 EAP (193.3793.21) is now available!

With this build, you can try out a bunch of enhancements for the editor-based HTTP client, new options for filtering find usages results, a new UI for cloning projects from version control and GitHub, and the ability to search within the selected text. As part of the continuing quality marathon, this build also brings usability and performance improvements.

Download the PhpStorm EAP #3 build from the EAP page or via the JetBrains Toolbox App. Or, if you have the previous PhpStorm 2019.3 EAP build #2 (193.3519.29) installed, you should soon get a notification in your IDE about a patch update.

HTTP Client improvements

PhpStorm comes with an editor-based HTTP client and we have made a bunch of improvements for it in 2019.3.

Editor toolbar

Whenever you open an .http file, you will now see a toolbar with quick access to common actions:

  • Add request – create requests from templates (try Live Templates too by pressing CMD+J in the editor).
  • Convert from cURL – alternatively, you can just paste a cURL request string right in the editor.
  • Open Log – view the list of sent requests and open/compare the responses.
  • Examples – explore a handy collection of HTTP requests.

http-client-toolbar

Folding requests

If you are sending a request with a long body, for example, multipart form data or maybe many headers, you may want to fold it to reduce noise in the editor.
You can fold the whole request leaving the first line, or only the body part:

http-client-folding

Completion for hosts

When composing a new request, you no longer need to type the hostname you used earlier. PhpStorm will offer you a list of hostnames in the suggestion list:

http-client-host-completion

Dynamic variables

We’ve added three dynamic variables that you can use anywhere in the requests:

  • $uuid – Generates a new UUID-v4 (e9e87c05-82eb-4522-bc47-f0fcfdde4cab)
  • $timestamp – Current Unix timestamp (1563362218)
  • $randomInt – A random integer between 0 and 1000

Use double curly brackets to insert one of these variables where needed:
GET http://httpbin.org/anything?id={{$uuid}}&ts={{$timestamp}}

http-client-dynamic-variables

Learn more about the editor-based HTTP client in the documentation.

Filtering in usages search results

When you Cmd + Click or press Cmd + B (Ctrl + B) on a class declaration, you’ll see the list of all its usages in the project. This list can be quite long for some entities, so PhpStorm provides a couple of new options to quickly filter these results.

Ignore $this-> and self:: access

By default PhpStorm will now filter out usages of the class where some of its members are accessed via $this-> or self:: references. You can see these lines in the search results by clicking filter-this-inline icon:

filter-this

Ignore import statements

In PhpStorm 2019.3, it is also possible to quickly filter out usages in import statements. You can toggle this option by clicking on the icon filter-imports-inline:

filter-imports

Find in selection

Select the code piece you need in the editor and invoke the Find action (CMD + F / Ctrl + F) and the IDE will search only in the selected area. If you need to extend the search area and search throughout the whole file, press CMD + F / Ctrl + F again, or alternatively toggle the In Selection option in the toolbar.

find-in-selection

New UI for cloning projects from the version control and GitHub

Now when you clone a project from a version control system (from the IDE Welcome screen or the VCS menu), you will see an updated Get from Version Control dialog.
With this redesign, we mainly want to improve the experience you have of getting a project from your GitHub account. You can now select GitHub on the left-side of the dialog and log in to your account from there.
After this, you can scroll through the list of repositories in your account and in organizations you belong to, and find the one you want to clone and start working with.

new-clone-ui


For the full list of changes in this build, see the release notes.

Check out previous EAP blog posts for more updates and added features:

Please report any problems to our issue tracker or comment on this post. Your feedback is much appreciated!

Your JetBrains PhpStorm Team
The Drive to Develop

image description