Introduce parameters from unresolved references in your code

Change a function or method signature by introducing parameters directly from unresolved references

The Create Parameter quick-fix for unresolved references allows you to create parameters directly from unresolved references in your code.

How it Works:

Locate a reference in your code that is currently unresolved (indicated by red code). Click a light bulb icon that will appear near the unresolved reference or use the keyboard shortcut ⌥⏎ (macOS) / Alt+Enter (Windows/Linux) to open the quick-fix options. Select the Create Parameter quick-fix. Modify the automatically suggested settings for the parameters in the Change Signature dialog and click Refactor. The IDE will add new parameters to a function or method signature.

Code coverage for applications

Related Resources

Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice
Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions
Extract Type Refactoring
Extract a type into its own definition and improve the reusability in your code