New in 4.0: Easier JavaScript Library Scope Configuration

As you may know from the previous post about JavaScript libraries in PhpStorm & WebStorm, the main benefit of specifying JavaScript libraries in your project is to populate a completion list with only relevant members. We have reorganized the configuration panel at Settings|JavaScript|Libraries, so it hopefully become easier to use.

If you simply want to select a library for the whole project, check the corresponding box. For more complex library scopes configuration, click Manage Scopes… button.

Also, for per-file scopes settings, you can use JavaScript file context menu triggered by right-clicking in the editor. Note that some items are disabled because their scope is set at upper level (project or directory).

Try out latest PhpStorm & WebStorm 4.0 EAP. We’d appeciate to hear responses from you in our issue tracker ;) .

 

Posted in Tutorial | Tagged , , , , , | 5 Comments

Attaching the sources of Node.js core modules

When developing a Node.js application it can be convenient to have code completion, validation and debugging capabilities for Node core modules (fs, path, http, etc).

Unfortunately, these modules are compiled into the binary. So you have to download the Node.js source code and attach it to the project (all the required sources are located in the lib/ folder). But every time you decide to upgrade your Node installation, you have to repeat these steps – and don’t forget to detach previously attached sources to avoid confusion in code completion and navigation!

Well, from now on there’s an easier way to attach the Node.js sources to your project.

Continue reading

Posted in Announcement | Tagged , , | 10 Comments

PhpStorm & WebStorm 4.0 EAP 117.65

The time frame for version 4.0 development is closing so we almost finished introducing new features and focused on bugs, performance and usability.

This week’s EAP brings you fixes and improvements in all areas, with following changes most notable:

  • PHP Completion for simple cases was improved – for class declarations, try/catch clauses, etc.
  • JavaScript got support for Requirejs and ’Go to declaration’ on CommonJS’s AMD format
  • Performance problems introduced with recent PHP 5.4 features were fixed

More details available in build changelog and platform changelog

Please, do not use twitter or blog comments for bug reports, file them to tracker.

Download PhpStorm & WebStorm for your platform from project EAP page.
Patch-update is NOT available.

Develop with pleasure!
-JetBrains Web IDE Team

Posted in Announcement | Tagged , , | 20 Comments

New in 4.0: Easier debugging of remote PHP command line scripts

Many of PhpStorm users like to debug their PHP web applications and local command line scripts using our zero-configuration debugging approach due to its simplicity and comfort. This time we would like to announce that since PhpStorm 4.0 you can use this approach for debugging remote PHP command line scripts.

Continue reading

Posted in Announcement | Tagged , , , , , | 2 Comments

New in 4.0: Smarter ordering of JavaScript completion options

We are getting a lot of reports and ideas from you about the ordering of JavaScript completion options. So in WebStorm 4.0 and PhpStorm 4.0 we made small but important improvements. More relevant suggestions now appear at the top of the list in many cases.

Continue reading

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

Checking your code with PHP Code Sniffer in PhpStorm 4.0

PhpStorm 4.0 allows you to check your code on the fly with PHP Code Sniffer (phpcs) just by opening a PHP file. The check is triggered every time you change something in the file thus making it extremely easy to get rid of problems reported by PHP Code Sniffer.

Continue reading

Posted in Announcement | Tagged , , | 24 Comments

New in 4.0: Support of PHP 5.4 Built-in Web Server

As of PHP 5.4.0, the CLI SAPI provides a built-in web server which is intended for development purposes only. We are glad to announce that since PhpStorm 4.0 you can control a web server instance directly from the IDE.

Continue reading

Posted in Announcement | Tagged , , | 5 Comments

New in 4.0: Drupal coding style support

PhpStorm 4.0 contains a bundled predefined coding style for the popular Drupal content management platform. Currently just reformatting your code in PhpStorm removes 99% of errors reported by Drupal coder-review and makes your code fit to Drupal coding standards.

Continue reading

Posted in Feature | Tagged , , | 13 Comments

PhpStorm & WebStorm 4.0 EAP 116.101

This week’s EAP brings you important bug fixes and improvements in all areas, with following changes most notable:

  • PHP 5.4 is now fully supported – this build will recognize trait use section’s method renames and conflict resolution rules and infer $this type in closures. There still some minor things to refine.. Anyway please pay attention to problems with 5.4 features and file all reports as new separate issues
  • PHP “Language Level” setting is added to project – see Settings | PHP. It will also set features for Language Level inspection to mark as unavailable
  • PHPDoc inheritance support added – both for classes/methods with missing docs or tagged with @inheritDoc superclasses/interfaces/traits will be looked up. Also PHPDoc presentation got some facelifting, with more coming
  • PHPUnit tests are now generated using phpunit-skelgen, see WI-9340
  • CSS editor got a significant speedup on large files
  • JavaScript completion got much requested ability to order suggestions by inheritance rather than alphabetically, completion for JQuery selector inside $() and ExtJS4/Sencha implied methods and configuration properties

More details available in build changelog and platform changelog

Please, do not use twitter or blog comments for bug reports, file them to tracker.

Download PhpStorm & WebStorm for your platform from project EAP page.
Patch-update is also available.

Develop with pleasure!
-JetBrains Web IDE Team

Posted in Announcement | Tagged , , , , , , , , | 3 Comments

New in 4.0: Custom code folding regions

This long-awaited feature gives you a possibility to define your own code-folding regions with special line comments.

Continue reading

Posted in Announcement, Feature | Tagged , , , , | 13 Comments