Quick-Fixes

A fast and easy way to fix errors
and warnings in your code
Quick Fixes

Remove Unused Usings

The Remove Unused Usings quick fix is available once JustCode has detected using directives that are not used in the current file. JustCode underlines the directives and suggests that you remove them.

Add Using For

The Fix Using quick fix is available once JustCode has detected a type name that cannot be resolved. JustCode underlines the type name and suggests you to automatically add a using directive or to fix all usings in the file.

Rename File To Match FileName

When a type and the file it is in do not have the same name, JustCode will offer to rename the file to match the selected type name. This feature works with classes, enums, interfaces and structures.

Create Method

When JustCode cannot find the method you are calling within a class, it will offer to create the missing method with a signature derived from the method invocation.

Create Variable

When there is an unknown identifier in your method body, JustCode will offer to create a local variable in the current method/constructor with the same name as the unknown identifier.

Remove Unused Private Method

The Remove Unused Method quick fix is available once JustCode has detected a private method that is not used. JustCode underlines the method and suggests you remove it.

Add Required Cast

JustCode underlines the type mismatch expression and offers to insert a cast (or a safe cast whenever appropriate) to the type of the expression standing on the left side of the assignment.

Create And Initialize Field

If you have an unused parameter in a constructor, JustCode will offer to create and initialize a field with the same name for you.

Add Parameter To Method

If you have a method call and you add an additional argument to that call, JustCode will offer to update the method’s signature and all calls to it. You can configure whether or not the method calls will be updated in JustCode’s options.

Add Reference and Fix Using

If JustCode detects a type name that cannot be resolved and is not available in the currently referenced assemblies, it underlines the type name and offers to add the reference.
Product Families