Load go.mod changes manually

Take control of when go.mod files are refreshed

Make all your changes then run go list at the push of a button.

How to use:

Navigate to Settings/Preferences | Build, Execution, Deployment | Build Tools and select External changes instead of Any changes.

Then, edit your go.mod file, and when you are done, press the button at the top-right corner of the editor to refresh these changes.


Related Resources

Create getters and setters for struct fields
Create getters and setters for struct fields
Generate the support code to access fields indirectly, via getters and setters
Improve Code Readability and Navigation
Improve Code Readability and Navigation
Discover how to manage code visibility with code folding in Go
Create a function in another package
Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice