Code Actions


A code action represents a change that can be performed in code, e.g. to fix a problem or to refactor code.

Underscore unused variable

If a variable is unused and the "unused variable" warning is emitted by the compiler, this code action will add the suggested underscore.

Require module

If a remote macro is used and it hasn't been required, this will insert the appropriate require SomeModule.

Create undefined function

Creates a new public or private function.

Remove debugger expression

Credo code action

Removes the expressions that trigger the following checks

  • Credo.Check.Warning.Dbg
  • Credo.Check.Warning.IExPry
  • Credo.Check.Warning.IoInspect
  • Credo.Check.Warning.IoPuts
  • Credo.Check.Warning.MixEnv