Edit Code Effectively
You can find the actions in the quick fix and refactoring context menus. They depend on the cursor position, the selected text (if any), the source code, the language type, and any available type information. Underlining with three dots suggests beneficial refactorings that you can perform. The suggestion panel shows you recommended refactorings for your whole file.
You can try P42 Pro 14 days for free.
Code Assists by Category
Code assists that belong to several categories appear more than once.
Code Assists for Logical Expressions
Code Assists for Branching Statements
Branching statements such as if-else and switch are central elements in many programs. Restructuring them can increase the readability of your programs, often in combination with refactoring their conditions:
Code Assists for Arrays and Loops
Code Assists for Functions and Methods
Functions and methods are essential building blocks of any non-trivial program. The following code actions make it easier to work with functions, methods, and their parameters:
Code Assists for Classes
Code Assists for Strings and Template Literals
Code Assists for Variables
Code Assists for Object and Array Destructuring
Code Assists for Syntax Conversion
It is often annoying to make small syntactical changes by editing text. Often more than one position needs to be edited, and the code is broken during the edit, leading to incorrect errors and auto-completions that get in the way. You can execute the following syntax conversions with code assists:
Code Assists for React
Code Assists for Moving Semantic Blocks
Report Bugs and Suggest Features
License & Used Open Source Libraries