Tag Archives: productivity

Change signature refactoring in PhpStorm

A very powerful refactoring is the Change signature refactoring in PhpStorm. It enables us to modify a function signature in many ways: we can change the function name, change its visibility, add, remove and reorder parameters as well as rename … Continue reading

Posted in Cool Feature, PhpStorm | Tagged , , , , | 3 Comments

Optimize Imports for PHP

Those of you who have already tried PhpStorm 6 might have noticed a lot of great additions to PHP imports support. In this post we would like to tell you about a long awaited feature: Optimize Imports for PHP.

Posted in Cool Feature, PhpStorm | Tagged , , , , , , | 5 Comments

Refactoring for Class Members in PhpStorm 6: Pull Up and Push Down

As you work on a big project, you often face the need to refactor your code to maintain it properly. Likewise, there are many situations when you start to add functionality from the bottom of the class hierarchy and then … Continue reading

Posted in Cool Feature, PhpStorm | Tagged , , , | 4 Comments

Using the REST Client within PhpStorm and WebStorm

When building REST-based web APIs, it’s worth having a tool available to invoke them over HTTP. The current versions of WebStorm 6, PhpStorm 6, RubyMine 5.4 and PyCharm contain a bundled REST Client plugin which allows us to do just … Continue reading

Posted in Cool Feature, PhpStorm | Tagged , , , , | 49 Comments

Rapid File Creation with File Templates

Many different files are created in the course of development, and the bigger your project grows, the more files it involves. However, most files are typical and can contain pre-defined information you don’t need to type every time you create … Continue reading

Posted in Cool Feature, PhpStorm, Screencast, Tutorial, WebStorm | Tagged , , , | 5 Comments

Continuous Integration for PHP using TeamCity

If you have multiple team members, you should be doing Continuous Integration (CI). By building the desired output artifacts on a frequent basis and analyzing their quality using unit tests and code coverage, you will find that there are fewer … Continue reading

Posted in Cool Feature, Tutorial | Tagged , , , , , , | 2 Comments

PhpStorm Type Inference and Mocking Frameworks

Recently, we received a question on Twitter asking about how PhpStorm handles type inference when working with mocking frameworks. Imagine having the following two classes: When writing a unit test for ClassA, it’s very easy to mock ClassB using PHPUnit’s … Continue reading

Posted in Cool Feature, PhpStorm, Tutorial | Tagged , , , , | 7 Comments

New in 5.0: Google Closure Compiler JSDoc annotations

Providing comments and annotations to your JavaScript code is a way to make it more definite and easier to read by other developers. It is especially important in large projects. Some static code analysis tools and verifiers take types and … Continue reading

Posted in Cool Feature, PhpStorm, WebStorm | Tagged , , , , | 19 Comments

What’s cooking: Instant HTML/CSS editing preview

Rapid feedback is one of most important productivity features. Especially when working with something actually visual – HTML or CSS. While we have discarded the idea of “built in preview” – mostly because in 80% cases it wasn’t true – … Continue reading

Posted in Cool Feature, PhpStorm, WebStorm | Tagged , , , , , | 45 Comments

Code Coverage for JavaScript Unit Testing

Measuring JavaScript code coverage naturally complements unit testing. It provides a clear picture of which parts of your code remain untested, and helps you focus additional tests on the uncovered code. From now on, users of JsTestDriver can measure code … Continue reading

Posted in Cool Feature, Tutorial, WebStorm | Tagged , , , , , | 5 Comments