

fdescribe) which tells Karma only to run this specific test block. My Angular unit test workflow in VS Code is typically to mark a describe or it test block with a f (e.g. The following image shows such a test run: Running my jasmine & Karma tests in WebStorm I can easily jump to the failed test code and rerun only this specific test. You can run your tests directly from the IDE and even debug them there. WebStorm has an integrated test runner, which I like. This feature convinced me that using WebStorm results in a cleaner code base. To see the difference open your project, which was developed in VS Code with WebStorm, and run the code inspection. This can significantly impact the code quality of a sizeable Angular code base, which was mainly developed using VS Code. But if you are, for example, using a TypeScript project (like Angular) VS Code does not detect unused public methods.

You can also detect unused methods in JavaScript methods using VS Code and ESLint with the rules no-unused-vars and no-unreachable. It also indexes your whole project and can, for example, detect all unused methods, variables, and more. This analysis detects language and runtime errors and suggests corrections and improvements. WebStorm provides a robust, fast, and flexible static code analysis.

In the following article, I talk about my experience using WebStorm in a sizeable Angular application which was mainly developed in VS Code. This is a scorching topic, and I know this will cause some controversy. If I talk about using WebStorm, I also talk about using IntelliJ IDEA. Upon the first launch, the system may prompt you to enable the Windows optional feature.IntelliJ IDEA provides the same functionality as WebStorm plus a lot of other features. Follow these instructions to switch the distributive. To work with WSL 2, your Windows version should be 10 build 18917 or later. See the official guide Install the Windows Subsystem for Linux for instructions. Configure WSLĭownload and install a WSL distribution (for instance, Ubuntu) from Microsoft Store.įor this step, be sure to use Windows 10 with the latest “Fall Creators Update” (minimum version 1709, build 16299.15). With WSL toolchain set up for your project, you can build using a toolchain from Linux, and run/debug on WSL, without leaving WebStorm running on your Windows machine. Currently, it supports several Linux distributions, such as Ubuntu, OpenSUSE, and SLES. WSL ( WSL 2) - Windows Subsystem for Linux - is a compatibility layer for running Linux binary executables natively on Windows 10.
