Uses the Refactorex language server to enhance VS Code with code actions to quickly refactor Elixir.
-
Function
- Expand anonymous function
- Extract anonymous function
- Extract function
- Inline function
- Rename function
- Underscore unused args
- Use keyword syntax
- Use regular syntax
-
Pipeline
-
Variable
- Extract constant
- Extract variable
- Inline constant
- Inline variable
- Rename constant
- Rename variable
- Underscore long number
- Description: expand an anonymous function from & to fn -> end syntax
- Works on: anonymous function selection
- Description: extract the anonymous function into a private function
- Works on: anonymous function selection
- Description: extract the selection into a private function
- Works on: selection
- Description: places an underscore in front of function args not used.
- Works on: function definition line or function clause line
- Description: rewrite the regular function (do end) using keyword syntax (, do:)
- Works on: function definition line
- Description: rewrite the keyword function (, do:) using regular syntax (do end)
- Works on: function definition line
- Description: pipe the first arg into call
- Works on: line
- Description: remove the pipe operator and put first arg inside call
- Works on: pipe line
- Description: extract the selection into a module constant
- Works on: selection