next-ls icon indicating copy to clipboard operation
next-ls copied to clipboard

workspace command: inline a variable

Open NJichev opened this issue 1 year ago • 0 comments

A workspace command that inlines a variable.

defmodule Example do
  def run(argument) do
    var = String.split(argument, "\n")
    DoSomeOtherThing.run(var)
  end
end

Hovering var with the cursor on both places and running the workspace command should result in:

defmodule Example do
  def run(argument) do
    DoSomeOtherThing.run(String.split(argument, "\n"))
  end
end

NJichev avatar Apr 24 '24 16:04 NJichev