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.

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

Rename a File and its References
Rename a File and its References
Change your mind on a file name, and the IDE makes all the changes for you.
Extract Type Refactoring
Extract Type Refactoring
Extract a type into its own definition and improve the reusability in your code.
Rename Go Module Refactoring
Rename Go Module Refactoring
Upgrade Go modules to newer versions with ease