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 (
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.
1) Open the Node.js settings dialog by clicking this icon on the toolbar:
2) Specify the path to Node.js interpreter and the Node.js version will be determined automatically.
3) Click Configure and the following dialog opens:
OK, now let’s try to code-complete methods from
http core module:
Our work is done here.
Attaching the sources of Node core modules from the editor
An alternative way to attach these sources to the project is to invoke a quick-fix:
Develop your Node.js applications with pleasure!
Note: Users of PhpStorm or other JetBrains IDEs – IntelliJ IDEA, PyCharm, RubyMine, and AppCode – should install the ‘NodeJS’ plugin from the plugin repository.
Working with Windows Azure SQL Database in PhpStorm
PhpStorm provides us the possibility to connect to Windows Azure SQL Database right from within the IDE. In this post, we’ll explore several options that are available for working with Windows Azure SQL Database (or database systems like SQL Server, MySQL, PostgreSQL or Oracle, for that matter): …
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 parameters. (more…)…
Folding for imports in PhpStorm 6.0
In PhpStorm 6, we've introduced code folding for imports. Any list of imports will now be folded into a single line. This greatly reduced clutter in your editor when having a lot of imports! (more…)…
Drag & Drop Project Files to Remote Hosts in PhpStorm
The Remote Host pane allows us to work directly on a remote server through FTP, FTPS, SFTP or a local/network folder. A lot of people asked us to add drag & drop to the Remote Host pane in PhpStorm. Good news: PhpStorm 6 comes with drag & drop as well as copy & paste support from the pro…