![]() And, of course, you can run it on the entire project (or custom scope) anytime via Code → Run Inspection by Name. ![]() You can adjust the relevant settings under Preferences | Editor | Duplicates. ![]() To toggle it, go to Preferences | Editor | Inspections | General. The new inspection is called Duplicated code fragment and is enabled by default. These are good candidates for an Extract refactoring, by the way. The analysis comes with an intention action to let navigate to the duplicates or display them in a tool window: Now, if you stumble upon an existing duplicate, or somehow create one, either by writing new code or pasting a piece of code, you will know it instantly: This PhpStorm EAP build takes the duplicate analysis to an entirely new level by allowing you to spot them on the fly. If you’ve never used it, you definitely should because it’s truly surprising how many duplicates an average codebase usually contains! It can help you eliminate duplicates and make your code more concise and stable. It’s been a while since we added this feature, accessible via Code → Locate Duplicates. Users should either redownload installer manually or trigger update via check from Preferences | Updates, or using Find Action. Note: Menu action Check for updates… for macOS users might not work due to a bug in the previous build. Or, if you have the previous PhpStorm 2019.2 EAP build (191.4738.10) installed, you should soon get a notification in your IDE about a patch update. It also improves PHP 7.4 support, including arrow functions, spread operator in arrays, and null coalesce assignment.Īnd, as usual, the build incorporates all the latest improvements from the IntelliJ Platform.ĭownload PhpStorm 2019.2 build 192.4488.6 on the EAP page or via the JetBrains Toolbox App. This build delivers on-the-fly detection of duplicates, supports preserving cookies in HTTP client, and can show more info in project view. The second build of the PhpStorm 2019.2 EAP is now available!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |